Class: User
- Inherits:
-
ApiEngineBase::ApplicationRecord
- Object
- ActiveRecord::Base
- ApiEngineBase::ApplicationRecord
- User
- Defined in:
- app/models/user.rb
Instance Method Summary collapse
Instance Method Details
#full_name ⇒ Object
38 39 40 |
# File 'app/models/user.rb', line 38 def full_name "#{first_name} #{last_name}" end |
#retreive_verifier_token! ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'app/models/user.rb', line 42 def retreive_verifier_token! return verifier_token if verifier_token value = SecureRandom.alphanumeric(32) update!(verifier_token: value) value end |