scoped has been depricated refactored to all

slight change to remove deprecation warning

DEPRECATION WARNING: Model.scoped is deprecated. Please use Model.all instead. (called from generate_auth_token