updating calls to deprecated scoped method

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