This project is archived and is in readonly mode.

#4490 ✓resolved
Neeraj Singh

array.to_xml should be able to handle all types of data elements

Reported by Neeraj Singh | April 27th, 2010 @ 09:44 PM

As of now array.to_xml only works if each of the elements of array respond_to to_xml. It means an array like the one given below consisting of only integer will not work.

a = [1, 2 ,3]
a.to_xml #=> will blow up

Attached is a patch that fixes this problem and brings to_xml support of an array inline with to_xml support of a hash.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket


Referenced by