This looks like the perfect opportunity for [a scope](http://guides.rubyonrails.org/active_record_querying.html#scopes)