This project is archived and is in readonly mode.

#1028 ✓committed
Emilio Tagua

Improve test coverage and add :having option to finder, hm and habtm.

Reported by Emilio Tagua | September 11th, 2008 @ 09:10 PM | in 2.x

This patch is divided in 3 parts:

  1. Improve test coverage when using option :group in find. There were no tests in finder using this option.
  2. Add the option :having to finder, to be used in combination with the :group option. So it can be used in a SELECT statement to filter the records that a GROUP BY returns.
  3. Include :having in has_many and has_and_belongs_to_many scope since both can use the option :group and therefore having can be very helpful in some situations when filtering records.

Added tests and docs that covers all new features.

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=""></a>

People watching this ticket

Referenced by