Module: HasJwtToken::Model
- Defined in:
- lib/has_jwt_token/model.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
10 11 12 |
# File 'lib/has_jwt_token/model.rb', line 10 def token @token end |
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/has_jwt_token/model.rb', line 12 def self.included(base) base.include(ActiveModel::SecurePassword) base.has_secure_password base.include(Authenticatable) base.extend(HasJwtModelConfiguration) end |