From 45caae41c3fbfc7ba77c5e2dc70734fa80501828 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 15 Feb 2005 15:02:43 +0000 Subject: Fixed all the tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/core_ext/hash/keys.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3