use Model.all instead of Model.scoped

Since Rails 4, Model.all returns an ActiveRecord::Relation, rather than an array of records. 
This PR gets rid of the deprecation warnings BUT it will break some code.