Module: Authlogic::ActsAsAuthentic::LoggedInStatus::Config

Defined in:
lib/authlogic/acts_as_authentic/logged_in_status.rb

Overview

All configuration for the logged in status feature set.

Instance Method Summary collapse

Instance Method Details

#logged_in_timeout(value = nil) ⇒ Object Also known as: logged_in_timeout=

The timeout to determine when a user is logged in or not.

  • Default: 10.minutes

  • Accepts: Fixnum



24
25
26
# File 'lib/authlogic/acts_as_authentic/logged_in_status.rb', line 24

def logged_in_timeout(value = nil)
  rw_config(:logged_in_timeout, (!value.nil? && value.to_i) || value, 10.minutes.to_i)
end