This project is archived and is in readonly mode.

#2179 ✓stale
David Genord II

[PATCH] ActiveResource not eager loading namespaced models

Reported by David Genord II | March 9th, 2009 @ 03:41 PM | in 3.x

Namespaced models are not eager loaded when loading association data in ActiveResource.

For example say you have models Accounts::User and Accounts::Address, and when you perform a find of the user, it also returns the user's addresses. if Accounts::Address is not loaded ActiveResource will create the class Accounts::User::Address instead of eager loading Accounts::Address when loading the data for the addresses.

I have created a patch here http://github.com/xspond/rails/c... but I do not know how to create the tests for this issue.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages