|
From http://habtm.com/articles/2006/05/10/inner-joins-by-association-names:
We can enjoy eager loading with association names.
代码
Member.find(:all, :include=>[:group, :profile])
restrictions
This is just an idea and not deeply considered yet. So, there are following restrictions.
* cascading is not supported * not work with :include option (i think)
最后更新:2007-01-08 07:58 |