Forum: Ruby on Rails eager loading all associations

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
=?ISO-8859-1?Q?Rodrigo_Alvarez_Fern=E1ndez?= (Guest)
on 2005-12-14 14:53
(Received via mailing list)
Hi Railers,

Is there a way to specify all relations in a :include option while
I have a model with a lot of associations, and sometimes i would like to
query for all them.
Something like Model.find(params[:id], :include => :all) would be nice.
Alternatively, i don't know if there is a mehod to retrieve all model's
associations, to do something like Model.find(params[:id], :include =>

This topic is locked and can not be replied to.