diff options
author | codebrulee <kevin@codebrulee.com> | 2009-05-04 12:36:22 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-05-04 10:01:01 -0700 |
commit | eb201e64c0b68aee6d0715d44cf48178204c4133 (patch) | |
tree | 377d55354d1131b5e7048753111ca47070102cd4 /activesupport/lib | |
parent | 8b6d2ef2f562c34ebc2ef547b0a18c31f5820569 (diff) | |
download | rails-eb201e64c0b68aee6d0715d44cf48178204c4133.tar.gz rails-eb201e64c0b68aee6d0715d44cf48178204c4133.tar.bz2 rails-eb201e64c0b68aee6d0715d44cf48178204c4133.zip |
Fixed Hash#from_xml with keys that are all caps.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb index f9dddec687..fe1f79050c 100644 --- a/activesupport/lib/active_support/core_ext/hash/conversions.rb +++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb @@ -217,7 +217,7 @@ class Hash case params.class.to_s when "Hash" params.inject({}) do |h,(k,v)| - h[k.to_s.underscore.tr("-", "_")] = unrename_keys(v) + h[k.to_s.tr("-", "_")] = unrename_keys(v) h end when "Array" |