aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorErol Fornoles <erol.fornoles@gmail.com>2017-02-21 14:13:51 +0800
committerErol Fornoles <erol.fornoles@gmail.com>2017-03-06 15:32:02 +0800
commitee2979b90539ef1e4fd13513c6b3f3ffd00244e2 (patch)
tree736b4bced11ae01d915ead46b12db8a2a9c85e68 /activesupport
parent7b633857ddcdb129d5b78f5d9e41994018115ed9 (diff)
downloadrails-ee2979b90539ef1e4fd13513c6b3f3ffd00244e2.tar.gz
rails-ee2979b90539ef1e4fd13513c6b3f3ffd00244e2.tar.bz2
rails-ee2979b90539ef1e4fd13513c6b3f3ffd00244e2.zip
Use method from Hash
Diffstat (limited to 'activesupport')
-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 1927cddf34..29ca6fbae8 100644
--- a/activesupport/lib/active_support/hash_with_indifferent_access.rb
+++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -228,7 +228,7 @@ module ActiveSupport
# Same semantics as +reverse_merge+ but modifies the receiver in-place.
def reverse_merge!(other_hash)
- replace(reverse_merge(other_hash))
+ super(self.class.new(other_hash))
end
# Replaces the contents of this hash with other_hash.