Module: Doorkeeper::Models::Mongoid::Scopes

Included in:
AccessGrant, AccessToken
Defined in:
lib/doorkeeper/models/mongoid/scopes.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/doorkeeper/models/mongoid/scopes.rb', line 5

def self.included(base)
  base.class_eval do
    def scopes=(value)
      write_attribute :scopes, value if value.present?
    end
  end
end