提交 e466ae13 编写于 作者: D David Heinemeier Hansson

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

上级 7857e421
*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]
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册