Re: Eager loading outside the find method

elioncho
2009-12-31T08:45:08Z

I just want to know if its possible.

On 31 dic, 03:31, elioncho
<elion...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> 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