This project is archived and is in readonly mode.

#6417 ✓committed
Steve F

ActiveRecord::Relation subquery support

Reported by Steve F | February 11th, 2011 @ 07:57 PM | in 3.1

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.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages