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
-
#logged_in_timeout(value = nil) ⇒ Object
(also: #logged_in_timeout=)
The timeout to determine when a user is logged in or not.
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
21 22 23 |
# File 'lib/authlogic/acts_as_authentic/logged_in_status.rb', line 21 def logged_in_timeout(value = nil) rw_config(:logged_in_timeout, (!value.nil? && value.to_i) || value, 10.minutes.to_i) end |