Eager loading outside the find method

elioncho
2009-12-31T08:31:40Z

Hello,

I am used tO the :include parameter always inside a find method:

@posts = Post.find(:all, :include => [:user])

How can I wire the :include to the relationship outside the find
method?

@posts = Post.find(:all)
@posts...(HERE THE METHOD TO WIRE UP THE USER TO EACH POST)

Thanks