Eager Loading

Is there a way to specify within a model that an association should
always be loaded. For example, the classic example from the API docs:

Post.find(:all, :include => :author)

What if I ALWAYS wanted the author to be loaded whenever a Post object
was created? So, in essence, Post.find(:all) would bring back each
post with the associated author object already loaded.


You can set up a default scope: