diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 19:13:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 19:13:30 +0000 |
commit | 6375569484ce08f53dec8064146c2ca0c74affcd (patch) | |
tree | 9f39f76190102d65cba8e1efd386d53276256a52 /activesupport/lib | |
parent | 7160ab1c18738ad357b68922b23ef47b204eef98 (diff) | |
download | rails-6375569484ce08f53dec8064146c2ca0c74affcd.tar.gz rails-6375569484ce08f53dec8064146c2ca0c74affcd.tar.bz2 rails-6375569484ce08f53dec8064146c2ca0c74affcd.zip |
Fixed that HashWithIndifferentAccess stringified all keys including symbols, ints, objects, and arrays #1162 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/indifferent_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb index 00cb0b0b51..91445610e2 100644 --- a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +++ b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb @@ -3,7 +3,7 @@ class HashWithIndifferentAccess < Hash def initialize(constructor = {}) if constructor.is_a?(Hash) super() - update(constructor.stringify_keys) + update(constructor) else super(constructor) end |