Class: ActionDispatch::Session::UrlSessionStore
- Inherits:
-
DalliStore
- Object
- DalliStore
- ActionDispatch::Session::UrlSessionStore
- Defined in:
- lib/action_dispatch/session/url_session_store.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ UrlSessionStore
constructor
A new instance of UrlSessionStore.
Constructor Details
#initialize(app, options = {}) ⇒ UrlSessionStore
Returns a new instance of UrlSessionStore.
10 11 12 13 14 15 16 17 |
# File 'lib/action_dispatch/session/url_session_store.rb', line 10 def initialize(app, = {}) super @default_options = { :param => 'session_id', :cookie_enabled => false }.merge(@default_options) @cookie_enabled = @default_options[:cookie_enabled] @param = @default_options[:param].to_s end |