Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveRecord.to_xml does not :skip_types for included associations

#1632

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>

Reported by Bruce Krysiak · December 25th, 2008 @ 09:12 AM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [8272630ce8af0546e7d1aa9211a9d91b80700cbd]) Ensure ActiveRecord#to_xml respects :skip_types for included associations [#1632 ActiveRecord.to_xml does not :skip_types for included associations state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    March 10th, 2009 @ 11:23 AM