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
February 7, 2015 4:03am
MIT