This project is archived and is in readonly mode.

#5015 new
Akira Matsuda

nested :joins scope can't be merged correctly

Reported by Akira Matsuda | June 30th, 2010 @ 09:27 AM

For example, while Blog has_many :posts and Post has_many :comments, both of the following two Arelish query fails:

Blog.joins(:posts) & Post.joins(:comments)
Comment.joins(:post) & Post.joins(:blog)

I really hope this nested :joins to work as expected, since it might be almost equivalent to:

Comment.first :joins => {:post => :blog}

which has been working since Rails 1.1 or so.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>