aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/hash_with_indifferent_access.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-29 20:58:46 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-29 20:58:46 +0530
commitbd674fd4e58387c331a7608bbfd48a690471c556 (patch)
tree369b6a9ac5c91774f1770102bb1768687b9daf41 /activesupport/lib/active_support/hash_with_indifferent_access.rb
parent8db99d3be8089fadabc9fe0848541f601438b401 (diff)
downloadrails-bd674fd4e58387c331a7608bbfd48a690471c556.tar.gz
rails-bd674fd4e58387c331a7608bbfd48a690471c556.tar.bz2
rails-bd674fd4e58387c331a7608bbfd48a690471c556.zip
change merge to merge!
Diffstat (limited to 'activesupport/lib/active_support/hash_with_indifferent_access.rb')
-rw-r--r--activesupport/lib/active_support/hash_with_indifferent_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb
index 306d80b2df..837db05dcc 100644
--- a/activesupport/lib/active_support/hash_with_indifferent_access.rb
+++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -78,7 +78,7 @@ module ActiveSupport
end
def self.[](*args)
- new.merge(Hash[*args])
+ new.merge!(Hash[*args])
end
alias_method :regular_writer, :[]= unless method_defined?(:regular_writer)