diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/xml_serialization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/xml_serialization.rb b/activerecord/lib/active_record/xml_serialization.rb index c3a39fc49d..df50ecc017 100644 --- a/activerecord/lib/active_record/xml_serialization.rb +++ b/activerecord/lib/active_record/xml_serialization.rb @@ -207,7 +207,7 @@ module ActiveRecord #:nodoc: tag = association.to_s tag = tag.dasherize if dasherize? - builder.tag!(tag) do + builder.tag!(tag, :type => :array) do records.each { |r| r.to_xml(opts.merge(:root=>r.class.to_s.underscore)) } end end |