Skip to content

Commit a66a6e0

Browse files
authored
Remove entries from count method
1 parent 9911c6d commit a66a6e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/active_admin/mongoid/helpers/collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Collection
88
def collection_size(collection = nil)
99
collection ||= self.collection
1010
if collection.is_a?(::Mongoid::Criteria)
11-
collection.entries.count
11+
collection.count
1212
else
1313
original_collection_size(collection)
1414
end

0 commit comments

Comments
 (0)