Forum: Ruby on Rails Forcing has_many to left join

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Norman E. (Guest)
on 2008-11-21 19:00
(Received via mailing list)
I'd like for my has_many :conditions clause to refer to columns on
both sides of the association. This would require left joining the
tables, all the time.

See http://www.pastie.org/320700

I've already whipped up a little patch that allows me to drop the
primary key relationship, so I can include whatever conditions I want.
But it just complains that one of the columns is nonexistent, since I
can't figure out how to require a left-join every time.

Is such a thing possible?

Thanks,

Norman
This topic is locked and can not be replied to.