search for: stockgroup

Displaying 1 result from an estimated 1 matches for "stockgroup".

Did you mean: stock_group
2006 Apr 04
1
has_many fails where find_by_sql succeeds
Can anyone explain why the method form of the following works, but the (apparently identical) has_many fails? I have 3 sites in my fixtures. Initially, for a new StockGroup, sites_not_using_this_stock_group should return all 3 sites (which it does). When you add a site to the StockGroup, it should disappear from the output of sites_not_using_this_stock_group. But the has_many form returns all 3 sites. I can''t see any difference myself? Thanks Ashl...