Module: Authlogic::ActsAsAuthentic::SessionMaintenance::Config
- Defined in:
- lib/authlogic/acts_as_authentic/session_maintenance.rb
Instance Method Summary collapse
-
#session_class(value = nil) ⇒ Object
(also: #session_class=)
The name of the associated session class.
-
#session_ids(value = nil) ⇒ Object
(also: #session_ids=)
As you may know, authlogic sessions can be separate by id (See Authlogic::Session::Base#id).
Instance Method Details
#session_class(value = nil) ⇒ Object Also known as: session_class=
The name of the associated session class. This is inferred by the name of the model.
-
Default:
“#Authlogic::ActsAsAuthentic::SessionMaintenance::Config.klassklass.nameSession”.constantize -
Accepts:
Class
44 45 46 |
# File 'lib/authlogic/acts_as_authentic/session_maintenance.rb', line 44 def session_class(value = nil) config(:session_class, value, "#{name}Session".constantize) end |
#session_ids(value = nil) ⇒ Object Also known as: session_ids=
As you may know, authlogic sessions can be separate by id (See Authlogic::Session::Base#id). You can specify here what session ids you want auto maintained. By default it is the main session, which has an id of nil.
-
Default:
[nil] -
Accepts:
Array
35 36 37 |
# File 'lib/authlogic/acts_as_authentic/session_maintenance.rb', line 35 def session_ids(value = nil) config(:session_ids, value, [nil]) end |