From 2472f1026a7d3b3309937568204a5b46b60c2c3c Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Thu, 22 Apr 2010 13:02:55 -0300 Subject: HWIA delegates to to_hash symbolize_keys and stringify_keys and bang methods are not in the api Signed-off-by: Jeremy Kemper --- activesupport/lib/active_support/hash_with_indifferent_access.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index 8241b69c8b..4de399a21a 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -111,8 +111,10 @@ module ActiveSupport super(convert_key(key)) end - def stringify_keys!; self end - def symbolize_keys!; self end + undef :stringify_keys! + def stringify_keys; to_hash.stringify_keys end + undef :symbolize_keys! + def symbolize_keys; to_hash.symbolize_keys end def to_options!; self end # Convert to a Hash with String keys. -- cgit v1.2.3