This project is archived and is in readonly mode.

#3979 ✓resolved
David Genord II

[PATCH] Join conditions removed on habtm and has many through with conditions or STI

Reported by David Genord II | February 17th, 2010 @ 04:38 PM

When utilizing a JoinDependency to load a habtm or has many through association that uses conditions and/or an STI target class that is not the base class, at least the join condition is lost producing incorrect results.

I have provided a patch that is split into 2 commits. The first commit alters the posts.yml and comments.yml fixtures and fixes the tests theses changes break. The second commit presents a new failing test case and the fix.

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=""></a>