Zen::Query class provides a way to dynamically apply scopes or ActiveRecord (or any other ORM) query methods based on passed params with a declarative and convenient API
Artem Kuzko
MIT