From ee2979b90539ef1e4fd13513c6b3f3ffd00244e2 Mon Sep 17 00:00:00 2001 From: Erol Fornoles Date: Tue, 21 Feb 2017 14:13:51 +0800 Subject: Use method from Hash --- activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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. -- cgit v1.2.3