This project is archived and is in readonly mode.
[TEST] Inverse of doesn't work when associations eager load other associations
Reported by Ryan Wallace | April 7th, 2011 @ 08:06 PM
Using includes when loading an association that has an inverse_of causes the inverse_of not to work.
p = Project.find(1)
pi = p.project_items
pi[0].project # Doesn't perform a query
p = Project.find(1)
pi = p.project_items.includes(:image)
pi[0].project # Performs a query
I've attached a failing test case for Rails master.
Comments and changes to this ticket
-
Ryan Wallace April 7th, 2011 @ 08:46 PM
- State changed from new to duplicate
Never mind. This is a duplicate of #4914. [state:duplicate]
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>