aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/core_ext/hash/keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/core_ext/hash/keys.rb b/activesupport/lib/core_ext/hash/keys.rb
index 3c301c6fa6..8725138856 100644
--- a/activesupport/lib/core_ext/hash/keys.rb
+++ b/activesupport/lib/core_ext/hash/keys.rb
@@ -13,7 +13,7 @@ module ActiveSupport #:nodoc:
# Destructively convert all keys to strings.
def stringify_keys!
keys.each do |key|
- unless key.is_a?(String)
+ 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