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
March 17, 2015 6:22pm
MIT