Rails 4.1 removed the .scoped method, and the recommendation is to use .all, as that returns an ActiveRecord::Relation.