Module: DoorkeeperMongodb::Shared::Scopes
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/doorkeeper-mongodb/shared/scopes.rb
Instance Method Summary collapse
Instance Method Details
#scopes=(value) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/doorkeeper-mongodb/shared/scopes.rb', line 12 def scopes=(value) scopes = if value.is_a?(Array) Doorkeeper::OAuth::Scopes.from_array(value).to_s else Doorkeeper::OAuth::Scopes.from_string(value.to_s).to_s end write_attribute :scopes, scopes end |
#scopes_string ⇒ Object
22 23 24 |
# File 'lib/doorkeeper-mongodb/shared/scopes.rb', line 22 def scopes_string self[:scopes] end |