We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9911c6d commit a66a6e0Copy full SHA for a66a6e0
1 file changed
lib/active_admin/mongoid/helpers/collection.rb
@@ -8,7 +8,7 @@ module Collection
8
def collection_size(collection = nil)
9
collection ||= self.collection
10
if collection.is_a?(::Mongoid::Criteria)
11
- collection.entries.count
+ collection.count
12
else
13
original_collection_size(collection)
14
end
0 commit comments