Skip to content

Commit 090a5da

Browse files
committed
collection_size returns correct value when used limit
1 parent aa057b5 commit 090a5da

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# module ActiveAdmin
2-
# module Helpers
3-
# module Collection
4-
# def collection_size(collection=collection)
5-
# raise collection.inspect
6-
# collection.count
7-
# end
8-
# end
9-
# end
10-
# end
1+
module ActiveAdmin
2+
module Helpers
3+
module Collection
4+
def collection_size(collection=collection)
5+
collection.count(true)
6+
end
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)