aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/xml_mini/libxmlsax.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2013-04-02 05:24:16 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2013-04-02 05:24:16 -0700
commit2a27485c68aba36c33897ae96f15fda9abb5a6a4 (patch)
tree383bf91af3ebf601509123f7e0b850144e0a2143 /activesupport/lib/active_support/xml_mini/libxmlsax.rb
parenta18c9f07fc1f4952d48e4f0473a3f14909068c62 (diff)
parent187969069a1d76b93088ec8f574b8c80252dbb51 (diff)
downloadrails-2a27485c68aba36c33897ae96f15fda9abb5a6a4.tar.gz
rails-2a27485c68aba36c33897ae96f15fda9abb5a6a4.tar.bz2
rails-2a27485c68aba36c33897ae96f15fda9abb5a6a4.zip
Merge pull request #10041 from vipulnsward/more_destructive_merge
change merge to merge! in AS on new hashes
Diffstat (limited to 'activesupport/lib/active_support/xml_mini/libxmlsax.rb')
-rw-r--r--activesupport/lib/active_support/xml_mini/libxmlsax.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/xml_mini/libxmlsax.rb b/activesupport/lib/active_support/xml_mini/libxmlsax.rb
index acc018fd2d..70a95299ec 100644
--- a/activesupport/lib/active_support/xml_mini/libxmlsax.rb
+++ b/activesupport/lib/active_support/xml_mini/libxmlsax.rb
@@ -32,7 +32,7 @@ module ActiveSupport
end
def on_start_element(name, attrs = {})
- new_hash = { CONTENT_KEY => '' }.merge(attrs)
+ new_hash = { CONTENT_KEY => '' }.merge!(attrs)
new_hash[HASH_SIZE_KEY] = new_hash.size + 1
case current_hash[name]