Class: KnockOnce::User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- KnockOnce::User
- Defined in:
- app/models/knock_once/user.rb
Instance Attribute Summary collapse
-
#current_password ⇒ Object
these allow passing non-DB params for different situations.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#to_token_payload ⇒ Object
Send additional user info as payload for front end.
Instance Attribute Details
#current_password ⇒ Object
these allow passing non-DB params for different situations
7 8 9 |
# File 'app/models/knock_once/user.rb', line 7 def current_password @current_password end |
#token ⇒ Object
Returns the value of attribute token.
8 9 10 |
# File 'app/models/knock_once/user.rb', line 8 def token @token end |
Instance Method Details
#to_token_payload ⇒ Object
Send additional user info as payload for front end
31 32 33 34 35 36 |
# File 'app/models/knock_once/user.rb', line 31 def to_token_payload { sub: id, email: email } end |