From 795c71f2ee60f53e8b9a6b964700c0245d8ec5f1 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 16 Mar 2006 20:30:01 +0000 Subject: dasherize the root element when doing to_xml git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3901 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 e0e5a36cfd..b516f58bff 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -38,7 +38,7 @@ module ActiveSupport #:nodoc: children = options.delete(:children) options[:builder].instruct! unless options.delete(:skip_instruct) - options[:builder].tag!(root) { each { |e| e.to_xml(options.merge({ :skip_instruct => true, :root => children })) } } + options[:builder].tag!(root.to_s.dasherize) { each { |e| e.to_xml(options.merge({ :skip_instruct => true, :root => children })) } } end end end -- cgit v1.2.3