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
29 30 31 |
# File 'lib/warden_oauth_provider/token/base.rb', line 29 def != nil && !invalidated? end |
#invalidate! ⇒ Object
25 26 27 |
# File 'lib/warden_oauth_provider/token/base.rb', line 25 def invalidate! update_attribute(:invalidated_at, Time.now) end |
#invalidated? ⇒ Boolean
21 22 23 |
# File 'lib/warden_oauth_provider/token/base.rb', line 21 def invalidated? invalidated_at != nil end |