This project is archived and is in readonly mode.
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
-
Repository March 10th, 2009 @ 11:23 AM
- State changed from new to resolved
(from [8272630ce8af0546e7d1aa9211a9d91b80700cbd]) Ensure ActiveRecord#to_xml respects :skip_types for included associations [#1632 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
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
Tags
Referenced by
- 1632 ActiveRecord.to_xml does not :skip_types for included associations (from [8272630ce8af0546e7d1aa9211a9d91b80700cbd]) Ensure ...