On 9/25/07, Frederick Cheung <[EMAIL PROTECTED]> wrote:

Do you mean http://dev.rubyonrails.org/ticket/9560 ?



Uh, yeah, my bad.

I may be reading incorrectly, but is it the case that if you were to
> have
> class A
>    has_one :b
> end
> class B
>    has_one :c
> end
> and you did
>
> A.find(:all, :include => {:b => :c}, :conditions => " cs.foo = bar")
>
> then this would try and only join  c (even though you need to go
> through b to get to c) ? No clue whether this is useful or not ( I
> could even be doing it myself)
>

Good question.  There should be a test for that in any case.  I don't have
time right now, but I'll check this out in the next couple days and then
repost the review request here.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to