Module: InstantLogin::Adapters::ActiveRecord::Methods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/instant_login/adapters/active_record.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#generate_instant_login_token ⇒ Object
18 19 20 |
# File 'lib/instant_login/adapters/active_record.rb', line 18 def generate_instant_login_token update(instant_login_token: SecureRandom.uuid, instant_login_token_created_at: Time.now) end |
#reset_instant_login ⇒ Object
22 23 24 |
# File 'lib/instant_login/adapters/active_record.rb', line 22 def reset_instant_login update(instant_login_token: nil, instant_login_token_created_at: nil) end |