Displaying 1 result from an estimated 1 matches for "everwrit".
Did you mean:
everwrite
2006 Jan 19
0
Limited eager loads and conditions on the eager tables
Hi,
Why are limited eager loads and conditions on the eager tables incompatible?
Doing a find(:all) without :include causes a select * query to be generated,
which means the id fields everwrite each other if associated tables are
included using :joins.
But using :include, if conditions are placed on the tables listed in :joins
then Rails throws an exception when :limit is included too.
Ordinarily I''d just leave out the limit, but I''m populating a div of limited
siz...