Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change merge to merge! in AS on new hashes

  • Loading branch information...
commit 187969069a1d76b93088ec8f574b8c80252dbb51 1 parent 98b5282
@vipulnsward vipulnsward authored
View
2  activesupport/lib/active_support/xml_mini/libxmlsax.rb
@@ -32,7 +32,7 @@ def on_end_document
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]
View
2  activesupport/lib/active_support/xml_mini/nokogirisax.rb
@@ -38,7 +38,7 @@ def error(error_message)
end
def start_element(name, attrs = [])
- new_hash = { CONTENT_KEY => '' }.merge(Hash[attrs])
+ new_hash = { CONTENT_KEY => '' }.merge!(Hash[attrs])
new_hash[HASH_SIZE_KEY] = new_hash.size + 1
case current_hash[name]
Please sign in to comment.
Something went wrong with that request. Please try again.