Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

has_one :through through belongs_to fails on includes()

#5512

this is linked partially to #5137 [PATCH] has_one :through through belongs_to associations does not build throu... 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.

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

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low