module Doorkeeper::Models::Scopes

Reopen to align with NoBrainer's exclusively `super` overrides. ORM is thrust into an infinite loop, otherwise.

Public Instance Methods

includes_scope?(*required_scopes) click to toggle source
# File lib/support/orm/rethinkdb/scopes.rb, line 18
def includes_scope?(*required_scopes)
  required_scopes.blank? || required_scopes.any? { |scope| scopes.exists?(scope.to_s) }
end
scopes() click to toggle source
Calls superclass method
# File lib/support/orm/rethinkdb/scopes.rb, line 6
def scopes
  OAuth::Scopes.from_string(super)
end
scopes=(value) click to toggle source
Calls superclass method
# File lib/support/orm/rethinkdb/scopes.rb, line 10
def scopes=(value)
  super Array(value).join(" ")
end
scopes_string() click to toggle source
# File lib/support/orm/rethinkdb/scopes.rb, line 14
def scopes_string
  self._read_attribute(:scopes)
end