diff options
author | Andrea Campi <andrea.campi@zephirworks.com> | 2010-10-09 19:28:43 +0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-10 14:06:44 -0200 |
commit | d80afed620dde5b9356c883ae187db2332d4c18e (patch) | |
tree | e632db797a0512e626f5e1ef3399ddf9620f1b30 /activesupport/lib/active_support | |
parent | 621df2a1ec01b77f7b052b3571f3c696f0443fea (diff) | |
download | rails-d80afed620dde5b9356c883ae187db2332d4c18e.tar.gz rails-d80afed620dde5b9356c883ae187db2332d4c18e.tar.bz2 rails-d80afed620dde5b9356c883ae187db2332d4c18e.zip |
Override #store to be consistent with #[].
[#5775 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |