On 27 Sep 2008, at 14:28, John Small
> To eager load the associations given the above result set does AR need
> to know that the input parameters had an :include in them. Or does it
> work things out purely from the result set
It's not by inspection of the result set (although it does used a
certain well defined set of aliased column names. There's a plugin
called eager finder SQL that claims to allow eager loading with custom
SQL.
Fred
>
>
>
>
> If it can work purely from a result set then I'll be able to hand code
> the SQL. If I have to tap on :include =>{:something} into automagic
> SQL
> creation then I'm stuffed.
>
> Any thoughts?
>
> John Small
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---