Re: Eager loading outside the find method

elioncho
2009-12-31T09:06:24Z

I want to reproduce the internals of eager loading.

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