Using scopes on a model that only need to accessed in a controller seems like a leakage of SRP. This gem will allow you to write simple filtering logic that translates your params to AREL queries.
Chris Ostrowski
April 2, 2017 12:56am
MIT