diff options
author | Erol Fornoles <erol.fornoles@gmail.com> | 2017-02-21 14:13:51 +0800 |
---|---|---|
committer | Erol Fornoles <erol.fornoles@gmail.com> | 2017-03-06 15:32:02 +0800 |
commit | ee2979b90539ef1e4fd13513c6b3f3ffd00244e2 (patch) | |
tree | 736b4bced11ae01d915ead46b12db8a2a9c85e68 /activesupport/lib | |
parent | 7b633857ddcdb129d5b78f5d9e41994018115ed9 (diff) | |
download | rails-ee2979b90539ef1e4fd13513c6b3f3ffd00244e2.tar.gz rails-ee2979b90539ef1e4fd13513c6b3f3ffd00244e2.tar.bz2 rails-ee2979b90539ef1e4fd13513c6b3f3ffd00244e2.zip |
Use method from Hash
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 |
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. |