Relation#all deprecation warning fix for Rails 4