updating calls to deprecated scoped method

Model.scoped is deprecated. Replaced all calls to .scoped with .scope

http://apidock.com/rails/v4.0.2/ActiveRecord/Associations/Association/scoped