This project is archived and is in readonly mode.
to_xml with :include should skip_instruct on the included records
Reported by Lawrence Pit | April 30th, 2010 @ 01:40 AM | in 3.0.2
When calling e.g. record.to_xml(@person, :include => [:company]) the xml output has multiple xml instruct elements. For example:
<?xml version="1.0" encoding="UTF-8"?>
<company>
<name>Company A</name>
<id>662</id>
<people>
<inspect/>
<?xml version="1.0" encoding="UTF-8"?>
<person>
<name>Person A</name>
<id>677</id>
</person>
<inspect/>
<?xml version="1.0" encoding="UTF-8"?>
<person>
<name>Person A</name>
<id>677</id>
</person>
</people>
</company>
Attached patch fixes this.
Comments and changes to this ticket
-
Repository April 30th, 2010 @ 01:28 PM
- State changed from new to resolved
(from [60504e62c8e2f5e137a0ac82aed67a6c0fe42447]) to_xml with :include should skip_instruct on the included records [#4506 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/60504e62c8e2f5e137a0ac82aed67a... -
Santiago Pastorino April 30th, 2010 @ 01:28 PM
- Milestone cleared.
- State changed from resolved to new
- Assigned user set to José Valim
-
José Valim April 30th, 2010 @ 01:29 PM
- State changed from new to resolved
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
- 4506 to_xml with :include should skip_instruct on the included records (from [60504e62c8e2f5e137a0ac82aed67a6c0fe42447]) to_xml ...