diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-08-27 14:16:30 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-08-27 14:16:30 +0200 |
commit | 6236cc46b9dccf85c84db0645bdca30bed583d58 (patch) | |
tree | 34cf16c30bbea925fbc790a0da431c9a064e434b /actionpack/lib | |
parent | 8748a3ee4c58b0fed8d9519e86c6ba60cdf18d55 (diff) | |
parent | 0258ef33a5b89a25ddc5b091ba03142578a6777b (diff) | |
download | rails-6236cc46b9dccf85c84db0645bdca30bed583d58.tar.gz rails-6236cc46b9dccf85c84db0645bdca30bed583d58.tar.bz2 rails-6236cc46b9dccf85c84db0645bdca30bed583d58.zip |
Merge pull request #21384 from jeremyf/updating-ActionController-TestSession-to-behave-as-a-hash-with-indifferent
Updating TestSession to access with indifference
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 103986e44a..39cbc0cd70 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -174,8 +174,8 @@ module ActionController clear end - def fetch(*args, &block) - @data.fetch(*args, &block) + def fetch(key, *args, &block) + @data.fetch(key.to_s, *args, &block) end private |