Module: Doorkeeper::Models::Scopes
- Included in:
- AccessGrant, AccessToken
- Defined in:
- lib/doorkeeper/models/scopes.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/doorkeeper/models/scopes.rb', line 4 def self.included(base) base.class_eval do define_method :scopes do Doorkeeper::OAuth::Scopes.from_string(self[:scopes]) end define_method :scopes_string do Doorkeeper::OAuth::Scopes.from_string(self[:scopes]).to_s end end end |