Model.all must only be used in Rails 4 and above to retrieve the current scope. For earlier version Model.scoped must be used