Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Using :include => :assoc AND :join => :assoc leads to alias issue

#1078

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.

Reported by David Stevenson · September 19th, 2008 @ 11:15 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. David Stevenson
    David Stevenson

    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.

    October 7th, 2008 @ 02:42 AM

  2. David Stevenson
  3. Pratik
    Pratik
    • State changed from new to wontfix

    January 18th, 2009 @ 06:28 AM