This project is archived and is in readonly mode.

#5512 ✓resolved
Zachery Hostens

has_one :through through belongs_to fails on includes()

Reported by Zachery Hostens | August 31st, 2010 @ 05:01 PM

this is linked partially to #5137 i believe.

I have written a test for this (could probably be a bit more in depth but it DOES currently fail)

http://github.com/zacheryph/rails/commit/fd6a4f8f756f864d838b03ad13...

I have noticed that doing #includes() with a has_one :through through a has_one works fine. but not when you attempt to do it on a has_one :through through a belongs_to.

Comments and changes to this ticket

  • Jon Leighton

    Jon Leighton December 21st, 2010 @ 09:52 PM

    • State changed from “new” to “resolved”
    • Importance changed from “” to “Low”

    Hi there,

    Thanks for the bug report. I have tried your test, and it passes on current master. I suspect it is related to #2801 which is fixed in master.

    Jon

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>