diff options
author | Tom Prats <tprats108@gmail.com> | 2015-07-12 02:01:30 -0400 |
---|---|---|
committer | Tom Prats <tprats108@gmail.com> | 2016-01-29 17:22:05 -0500 |
commit | 82dc8266dddc199789f3f1e9a9f21975e1c8ee87 (patch) | |
tree | c7b1747445c3bd5d76933eaf49e6022a8128ceeb /actionpack/lib | |
parent | 513f72804d800bb9a028f6ffc66ab1a0b45df26f (diff) | |
download | rails-82dc8266dddc199789f3f1e9a9f21975e1c8ee87.tar.gz rails-82dc8266dddc199789f3f1e9a9f21975e1c8ee87.tar.bz2 rails-82dc8266dddc199789f3f1e9a9f21975e1c8ee87.zip |
Update session to have indifferent access
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/request/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/request/session.rb b/actionpack/lib/action_dispatch/request/session.rb index 42890225fa..f6428af636 100644 --- a/actionpack/lib/action_dispatch/request/session.rb +++ b/actionpack/lib/action_dispatch/request/session.rb @@ -9,7 +9,7 @@ module ActionDispatch # Singleton object used to determine if an optional param wasn't specified Unspecified = Object.new - + # Creates a session hash, merging the properties of the previous session if any def self.create(store, req, default_options) session_was = find req @@ -61,7 +61,7 @@ module ActionDispatch def initialize(by, req) @by = by @req = req - @delegate = {} + @delegate = {}.with_indifferent_access @loaded = false @exists = nil # we haven't checked yet end |