From d80afed620dde5b9356c883ae187db2332d4c18e Mon Sep 17 00:00:00 2001 From: Andrea Campi Date: Sat, 9 Oct 2010 19:28:43 +0200 Subject: Override #store to be consistent with #[]. [#5775 state:resolved] Signed-off-by: Santiago Pastorino --- activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 ++ 1 file changed, 2 insertions(+) (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 e8215bc566..c406dd3c2e 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -45,6 +45,8 @@ module ActiveSupport regular_writer(convert_key(key), convert_value(value)) end + alias_method :store, :[]= + # Updates the instantized hash with values from the second: # # hash_1 = HashWithIndifferentAccess.new -- cgit v1.2.3