Displaying 1 result from an estimated 1 matches for "blurlf".
Did you mean:
blurfl
2007 Sep 05
1
Single Table Inheritance and :conditions
...odel (table is blurfls)
in cog.rb, I have something like:
def foo
Cog.find(:all, :include=>''blurfl'', :condition=> ["cogs.status =
''Active''"]
end
So we''re joining active cogs and blurfls. Now, and this is the thang,
assume that the blurlfs and cogs tables both have a status column.
The problem is that the conditional statement above won''t work. There
isn''t a cogs table. And I have to qualify the column name since it
exists in blurfls and employees.
Rails seems to have all the information it needs to do this
tra...