Class: SaasPlatform::ApiKey
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- SaasPlatform::ApiKey
- Defined in:
- app/models/saas_platform/api_key.rb
Class Method Summary collapse
Class Method Details
.authenticate(token) ⇒ Object
14 15 16 |
# File 'app/models/saas_platform/api_key.rb', line 14 def self.authenticate(token) active.find_by(access_token: token) end |