Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the option merging in Array#to_xml [#1126 state:resolved]

  • Loading branch information...
commit e466ae13e9b6d901e3e39bb9ceeafd83e266ce81 1 parent 7857e42
@dhh dhh authored
View
2  activesupport/CHANGELOG
@@ -1,5 +1,7 @@
*2.2.1 [RC2 or 2.2 final]*
+* Fixed the option merging in Array#to_xml #1126 [Rudolf Gavlas]
+
* Make I18n::Backend::Simple reload its translations in development mode [DHH/Sven Fuchs]
View
2  activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -172,7 +172,7 @@ def to_xml(options = {})
else
xml.tag!(root, options[:skip_types] ? {} : {:type => "array"}) {
yield xml if block_given?
- each { |e| e.to_xml(opts.merge!({ :skip_instruct => true })) }
+ each { |e| e.to_xml(opts.merge({ :skip_instruct => true })) }
}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.