Displaying 1 result from an estimated 1 matches for "grant_ownership".
Did you mean:
grant_ownerships
2006 Apr 14
0
has_many through generated SQL column names incorrect
...searching and
can''t find it again. I have a has_many, through relationship, but when
I try to :include the join table in a
Model.find(:all, :conditions => "join_table.column = something",
:include => "join_table")
the generated sql contains this where "grant_ownerships" is the join
table and "grants" is one of the tables it is joining.
...
LEFT OUTER JOIN grant_ownerships grant_ownerships_grants ON
grant_ownerships_grants.grant_id = grants.id
See how there are underscores where there should be periods?
Is there a fix for this?
Sorry for th...