Class: Rack::Session::Abstract::ID
- Inherits:
-
Object
- Object
- Rack::Session::Abstract::ID
- Defined in:
- lib/rack/session/redis_hash.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#prepare_session(env) ⇒ Object
overwrite prepare_session behavior to turn off use of SessionHash.
Instance Method Details
#prepare_session(env) ⇒ Object
overwrite prepare_session behavior to turn off use of SessionHash
52 53 54 55 56 57 |
# File 'lib/rack/session/redis_hash.rb', line 52 def prepare_session(env) session_was = env[ENV_SESSION_KEY] env[ENV_SESSION_OPTIONS_KEY] = OptionsHash.new(self, env, @default_options) env[ENV_SESSION_OPTIONS_KEY][:id], env[ENV_SESSION_KEY] = load_session(env) env[ENV_SESSION_KEY].merge! session_was if session_was end |