Module: Sorcery::Model::Submodules::ActivityLogging::InstanceMethods

Defined in:
lib/sorcery/model/submodules/activity_logging.rb

Instance Method Summary collapse

Instance Method Details

#set_last_activity_at(time) ⇒ Object



44
45
46
# File 'lib/sorcery/model/submodules/activity_logging.rb', line 44

def set_last_activity_at(time)
  sorcery_adapter.update_attribute(sorcery_config.last_activity_at_attribute_name, time)
end

#set_last_ip_addess(ip_address) ⇒ Object



48
49
50
# File 'lib/sorcery/model/submodules/activity_logging.rb', line 48

def set_last_ip_addess(ip_address)
  sorcery_adapter.update_attribute(sorcery_config., ip_address)
end

#set_last_login_at(time) ⇒ Object



36
37
38
# File 'lib/sorcery/model/submodules/activity_logging.rb', line 36

def (time)
  sorcery_adapter.update_attribute(sorcery_config., time)
end

#set_last_logout_at(time) ⇒ Object



40
41
42
# File 'lib/sorcery/model/submodules/activity_logging.rb', line 40

def set_last_logout_at(time)
  sorcery_adapter.update_attribute(sorcery_config.last_logout_at_attribute_name, time)
end