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
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/oauth/models/consumers/token.rb', line 6 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 |