rails/rails — Issue #3553: joins() not following delegate associations
Author: farski
Created: 2011-11-07 15:32:48+00:00
State: open

It seems like object.join(:foo) behaves very differently than the old object(:joins => 'foo') when the association with foo is a delegate. Namely, the latter (older) version works, and the new query interface version can't find the association (I wish I had just misspelled it). Perhaps this kind of difference is expected, but it threw me for a loop, since I generally expect the old method and new method to behave roughly the same. Or at least have some way of achieving the same result; I've yet to get this association to work with the new query interface.