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.

to_xml with :include should skip_instruct on the included records

#4506

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.

Reported by Lawrence Pit · April 30th, 2010 @ 01:40 AM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: none

Activity

  1. Repository
  2. Santiago Pastorino
    Santiago Pastorino
    • Milestone cleared.
    • State changed from resolved to new
    • Assigned user set to José Valim

    April 30th, 2010 @ 01:28 PM

  3. José Valim
    José Valim
    • State changed from new to resolved

    April 30th, 2010 @ 01:29 PM

  4. Jeremy Kemper