This project is archived and is in readonly mode.
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
-
Repository June 10th, 2008 @ 07:06 AM
- State changed from new to resolved
(from [225065709c43dacd57e0904aef2075024ccf2744]) Fixes parsing deep nested resources from XML. [#380 state:resolved]
-
Repository July 15th, 2008 @ 11:56 PM
- Tag set to activeresource, bug, patch, tested
(from [70a34cd6414b09895555717579a5bd0c552fc632]) Fixes parsing deep nested resources from XML. [#380 state: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>