aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-09-16 18:50:36 +0200
committerMichael Koziarski <michael@koziarski.com>2008-09-16 18:50:36 +0200
commit4db7e8de1160de6c813a33266fa415849e25fba6 (patch)
tree15e2591d1ae9129a4af55ca4eb4a48c98de0914c
parent4dae3649f062137347bac43cd0708207d2a94d66 (diff)
downloadrails-4db7e8de1160de6c813a33266fa415849e25fba6.tar.gz
rails-4db7e8de1160de6c813a33266fa415849e25fba6.tar.bz2
rails-4db7e8de1160de6c813a33266fa415849e25fba6.zip
Update the documentation to reflect the change handling :group earlier
-rw-r--r--activerecord/lib/active_record/associations/has_many_association.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb
index dda22668c6..3b2f306637 100644
--- a/activerecord/lib/active_record/associations/has_many_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_association.rb
@@ -17,7 +17,10 @@ module ActiveRecord
# Returns the number of records in this collection.
#
# If the association has a counter cache it gets that value. Otherwise
- # a count via SQL is performed, bounded to <tt>:limit</tt> if there's one.
+ # it will attempt to do a count via SQL, bounded to <tt>:limit</tt> if
+ # there's one. Some configuration options like :group make it impossible
+ # to do a SQL count, in those cases the array count will be used.
+ #
# That does not depend on whether the collection has already been loaded
# or not. The +size+ method is the one that takes the loaded flag into
# account and delegates to +count_records+ if needed.