This project is archived and is in readonly mode.
Changeset [dc8bf7515de85f5bc28d17e96edf4a3e74a858da] by miloops
September 15th, 2008 @ 05:32 PM
When counting grouped records the target should be loaded to return a valid groups count result.
Without this change count_records will group for the count in the query and return erroneous results.
Signed-off-by: Michael Koziarski michael@koziarski.com [#937 state:committed] http://github.com/rails/rails/co...
Committed by miloops
- M activerecord/lib/active_record/associations/association_collection.rb
- M activerecord/test/cases/associations/has_many_associations_test.rb
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>