This project is archived and is in readonly mode.
Changeset [dc8bf7515de85f5bc28d17e96edf4a3e74a858da] by miloops
Revision dc8bf7515de85f5bc28d17e96edf4a3e74a858da,
committed 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...
2 changed files
-
M
activerecord/lib/active_record/associations/association_collection.rb -
M
activerecord/test/cases/associations/has_many_associations_test.rb