diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-01 06:48:09 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-01 06:48:09 +0000 |
commit | 846e8587273743b5cc46708b3c0f047bb501fe02 (patch) | |
tree | d180fd4e04b1177b9771bfbeb29cce323b4adae2 /activesupport/lib/active_support/core_ext/array/conversions.rb | |
parent | 83ce4c59be3d5f1f1246b46f53370f5f65fd0dc5 (diff) | |
download | rails-846e8587273743b5cc46708b3c0f047bb501fe02.tar.gz rails-846e8587273743b5cc46708b3c0f047bb501fe02.tar.bz2 rails-846e8587273743b5cc46708b3c0f047bb501fe02.zip |
Added proper handling of arrays (closes #8537) [hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/array/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 })) } } |