This project is archived and is in readonly mode.

#372 ✓resolved
Tiago Macedo

Using conditions/order on a join table will break on a limited eager loading

Reported by Tiago Macedo | June 8th, 2008 @ 05:13 PM

This patch solves the problem that currently exists when using conditions or order on a join table.

This should only affect the limited eager loadds, which means that in order to verify this, you need a has_and_belongs_to_many relationship and you need to use the :limit, :include and :conditions (or :order) on a column that belongs to the join table.

Included in the patch are tests that verify this.

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>

People watching this ticket

Attachments

Referenced by

Pages