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.

ActiveRecord::Relation subquery support

#6417

This is twofold.

ActiveRecord::Relation where clauses hash syntax accepts an ActiveRecord::Relation as a value, but it maps the relation to ids when it could just us a subquery. By adding that support we can easily add support for subqueries in general.

I've attached a patch with tests.

I've corresponded with Aaron Patterson a bit and he told me to assign it to him, so I'm doing so.

Reported by Steve F · February 11th, 2011 @ 07:57 PM

State: committed
Milestone: 3.1
Assigned to: Aaron Patterson Aaron Patterson
Importance: Low

Activity

  1. Aaron Patterson
    Aaron Patterson
    • State changed from new to committed
    • Milestone set to 3.1
    • Importance changed from to Low

    This is applied and pushed to master.

    February 21st, 2011 @ 06:36 PM