This project is archived and is in readonly mode.

#1632 ✓resolved
Bruce Krysiak

ActiveRecord.to_xml does not :skip_types for included associations

Reported by Bruce Krysiak | December 25th, 2008 @ 09:12 AM | in 2.x

AR.to_xml :skip_types => true doesn't skip_types on included associations:


>> puts Author.find(2).to_xml :skip_types => true

<author>
  <id>2</id>
  <hello-posts type="array">
    <hello-post>
[...]
    </hello-post>
  </hello-post>
</author>

this patch fixes it so this will return:


<author>
  <id>2</id>
  <hello-posts>
    <hello-post>
[...]
    </hello-post>
  </hello-post>
</author>

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages