diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/keys.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/keys.rb b/activesupport/lib/active_support/core_ext/hash/keys.rb index ff8e68faa1..7312bcb416 100644 --- a/activesupport/lib/active_support/core_ext/hash/keys.rb +++ b/activesupport/lib/active_support/core_ext/hash/keys.rb @@ -13,10 +13,7 @@ module ActiveSupport #:nodoc: # Destructively convert all keys to strings. def stringify_keys! keys.each do |key| - unless key.class.to_s == "String" # weird hack to make the tests run when string_ext_test.rb is also running - self[key.to_s] = self[key] - delete(key) - end + self[key.to_s] = delete(key) end self end |