Module: Oauth::Models::Consumers::Token

Included in:
ConsumerToken
Defined in:
lib/oauth/models/consumers/token.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/oauth/models/consumers/token.rb', line 8

def self.included(model)
  model.class_eval do
    validates_presence_of :user, :token
  end

  model.send(:include, InstanceMethods)
  model.send(:extend, ClassMethods)

end