This project is archived and is in readonly mode.

#1160 ✓invalid

scoped models serialize into invalid xml

Reported by deadlyicon | October 2nd, 2008 @ 11:21 PM

The ActiveRecord::XmlSerializer creates invalid xml when serializing models within a scope.

>> puts Myscope::Mymodel.first.to_xml

This xml is invalid because you are not allowed slashes in a node name. The invalid node name is caused by the way XmlSerializer converts a model's class name into the xml root string


( in xml_serializer.rb on lines 180 and 223 )

I offer this as a possible fix


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