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_tokenObject



18
19
20
# File 'lib/instant_login/adapters/active_record.rb', line 18

def 
  update(instant_login_token: SecureRandom.uuid, instant_login_token_created_at: Time.now)
end

#reset_instant_loginObject



22
23
24
# File 'lib/instant_login/adapters/active_record.rb', line 22

def 
  update(instant_login_token: nil, instant_login_token_created_at: nil)
end