On 10/26/07, Josh Susser <[EMAIL PROTECTED]> wrote:
> If you wanted something friendlier than a SQL joins clause string,
> like the hash/array syntax used by the :include option, that could be
> a good alternate syntax for :joins. Much more Rails-like too. I'd
> be interested in seeing something that lets you do:
>
> Post.find(:all, :joins => {:comments => :author}, :conditions =>
> ["authors.name = ?", name]
Okay, I just reread your post, and this seems to be the nugget.
You're proposing an extension of the value of the :joins option which
if used would trigger the same kind of object identity preservation of
the instances of the AR class receiving the find message.
That makes sense I think.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---