fix deprecation warning about Relation#all in Rails 4