This project is archived and is in readonly mode.
Polymorphic belongs_to associations error if they have conditions when loading target
-
Ernie Miller
- Tag changed from patch test association_proxy belongs_to polymorphic to association_proxy, belongs_to, patch, polymorphic, test
Attaching the other patch and fixing my tags because I'm a sad, sad excuse for a Lighthouse user.
-
Jon Leighton
- Importance changed from to Low
Hiya,
Can you check if this is still an issue against current master? A recent change I made (770e6893b9f2aaaebe3de10576931dc7194451bc) basically bypasses the
conditionsmethod and adds everything to a scope which is used instead. So I suspect this might solve your problem.I'd be happy for this to be added to 3-0-stable though. BTW you patch contains a hard tab, which should be converted to a double space.
Cheers,
Jon -
Jon Leighton
- State changed from new to resolved
Hey,
I see via Twitter that Aaron applied your patch :)
It turns out that the test does pass straight off since that change I mentioned, so I've added a commit to my own fork which just deletes the
conditionsmethod (but not the test). I'll get Aaron to merge it...Cheers
