Class: Spree::OauthApplication
- Inherits:
-
Object
- Object
- Spree::OauthApplication
- Includes:
- Doorkeeper::Orm::ActiveRecord::Mixins::Application
- Defined in:
- app/models/spree/oauth_application.rb
Instance Method Summary collapse
-
#last_used_at ⇒ DateTime
returns the last someone used this application.
Instance Method Details
#last_used_at ⇒ DateTime
returns the last someone used this application
12 13 14 |
# File 'app/models/spree/oauth_application.rb', line 12 def last_used_at access_tokens.order(:created_at).last&.created_at end |