Class: Landable::Author
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Landable::Author
- Includes:
- TableName
- Defined in:
- app/models/landable/author.rb
Class Method Summary collapse
Class Method Details
.authenticate!(username, token_id) ⇒ Object
6 7 8 9 10 |
# File 'app/models/landable/author.rb', line 6 def self.authenticate!(username, token_id) return unless = where(username: username).first return unless .access_tokens.fresh.exists?(token_id) end |