diff options
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb index 1a5ddee9c6..51ac83294c 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -61,9 +61,9 @@ module ActiveSupport #:nodoc: options[:builder].instruct! unless options.delete(:skip_instruct) - opts = options.merge({ :skip_instruct => true, :root => children }) + opts = options.merge({ :root => children }) - options[:builder].tag!(root) { each { |e| e.to_xml(opts) } } + options[:builder].tag!(root) { each { |e| e.to_xml(opts.merge!({ :skip_instruct => true })) } } end end |