This project is archived and is in readonly mode.
Using :include => :assoc AND :join => :assoc leads to alias issue
Reported by David Stevenson | September 19th, 2008 @ 11:15 PM | in 2.x
It would be nice if rails aliased tables when it added generated joins to associations. This is very useful when chaining named_scopes, some of which :join a table and others :include a table.
Tests attached, but no fix yet.
Comments and changes to this ticket
-
David Stevenson October 7th, 2008 @ 02:42 AM
I've since disabled pre-2.1-single-query includes entirely and this solves the problem. The only issue comes when you're using old-style-includes AND a join on the same table. I think this could be better solved by the ability to disable single-query-includes entirely at a global level, for those who care about performance.
-
Pratik January 18th, 2009 @ 06:28 AM
- State changed from new to wontfix
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>