From 846e8587273743b5cc46708b3c0f047bb501fe02 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 1 Jun 2007 06:48:09 +0000 Subject: Added proper handling of arrays (closes #8537) [hasmanyjosh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/array/conversions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/array/conversions.rb') diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb index a4d056e81c..6950e21027 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -63,7 +63,7 @@ module ActiveSupport #:nodoc: opts = options.merge({ :root => children }) - options[:builder].tag!(root) { + options[:builder].tag!(root, options[:skip_types] ? {} : {:type => "array"}) { yield options[:builder] if block_given? each { |e| e.to_xml(opts.merge!({ :skip_instruct => true })) } } -- cgit v1.2.3