Fix Rails 4 deprecation warning about using Relation#all