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)
-
- (Object) logged_in_timeout(value = nil)
(also: #logged_in_timeout=)
The timeout to determine when a user is logged in or not.
Instance Method Details
- (Object) logged_in_timeout(value = nil) 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 |