module Doorkeeper::Models::Mongoid3::Scopes
Public Instance Methods
includes_scope?(*required_scopes)
click to toggle source
# File lib/doorkeeper/orm/mongoid3/concerns/scopes.rb, line 19 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/orm/mongoid3/concerns/scopes.rb, line 11 def scopes OAuth::Scopes.from_string(self[:scopes]) end
scopes=(value)
click to toggle source
# File lib/doorkeeper/orm/mongoid3/concerns/scopes.rb, line 23 def scopes=(value) write_attribute :scopes, value end
scopes_string()
click to toggle source
# File lib/doorkeeper/orm/mongoid3/concerns/scopes.rb, line 15 def scopes_string self[:scopes] end