fix rails 4 deprecation warning (WARNING: Model.scoped is deprecated. Please use Model.all instead)