The HashToConditions gem provides an easy way to build ActiveRecord Array conditions directly from a Hash.
Long On
MIT