Module: Oauth::Models::Consumers::Token
- 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 17 |
# File 'lib/oauth/models/consumers/token.rb', line 8 def self.included(model) model.class_eval do belongs_to :user validates_presence_of :user, :token, :secret end model.send(:include, InstanceMethods) model.send(:extend, ClassMethods) end |