Skip to content

Commit

Permalink
Fixed the option merging in Array#to_xml [#1126 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Oct 31, 2008
1 parent 7857e42 commit e466ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions activesupport/CHANGELOG
Original file line number Diff line number Diff line change
@@ -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]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e466ae1

Please sign in to comment.