instance method
session_store
Ruby on Rails 4.0.13
Since v3.0.20Signature
session_store(*args)
No documentation comment.
Parameters
-
argsrest
Source
# File railties/lib/rails/application/configuration.rb, line 131
def session_store(*args)
if args.empty?
case @session_store
when :disabled
nil
when :active_record_store
begin
ActionDispatch::Session::ActiveRecordStore
rescue NameError
raise "`ActiveRecord::SessionStore` is extracted out of Rails into a gem. " \
"Please add `activerecord-session_store` to your Gemfile to use it."
end
when Symbol
ActionDispatch::Session.const_get(@session_store.to_s.camelize)
else
@session_store
end
else
@session_store = args.shift
@session_options = args.shift || {}
end
end
Defined in railties/lib/rails/application/configuration.rb line 131
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application::Configuration