This project is archived and is in readonly mode.

#380 ✓resolved
Luis Hurtado

fixes parsing deep nested resources from XML

Reported by Luis Hurtado | June 10th, 2008 @ 04:02 AM

This patch fix a bug on ActiveResource::Base#find_or_create_resource_for which avoids to parse correctly deep nested resources from XML.

When parsing deep nested resources from a XML representation, ActiveResource builds nested classes (resources) starting from root resource. The problem happens when the XML has an array of resources more than second level of nesting because it tries to set the same resource more than one time on the same base resource. The bug shows shows the warning: "warning: already initialized constant [ResourceClassName]"; also parsing fails.

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=""></a>

People watching this ticket