Class: WardenOauthProvider::Token::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- WardenOauthProvider::Token::Base
- Defined in:
- lib/warden_oauth_provider/token/base.rb
Instance Method Summary collapse
Instance Method Details
#authorized? ⇒ Boolean
27 28 29 |
# File 'lib/warden_oauth_provider/token/base.rb', line 27 def != nil && !invalidated? end |
#invalidate! ⇒ Object
23 24 25 |
# File 'lib/warden_oauth_provider/token/base.rb', line 23 def invalidate! update_attribute(:invalidated_at, Time.now) end |
#invalidated? ⇒ Boolean
19 20 21 |
# File 'lib/warden_oauth_provider/token/base.rb', line 19 def invalidated? invalidated_at != nil end |