module Doorkeeper::Models::Scopes

Public Instance Methods

includes_scope?(*required_scopes) click to toggle source
# File lib/doorkeeper/models/concerns/scopes.rb, line 12
def includes_scope?(*required_scopes)
  required_scopes.blank? || required_scopes.any? { |s| scopes.exists?(s.to_s) }
end
scopes() click to toggle source
# File lib/doorkeeper/models/concerns/scopes.rb, line 4
def scopes
  OAuth::Scopes.from_string(self[:scopes])
end
scopes_string() click to toggle source
# File lib/doorkeeper/models/concerns/scopes.rb, line 8
def scopes_string
  self[:scopes]
end