8000 Revert #4068 · irmela/activeadmin@d93cef7 · GitHub
[go: up one dir, main page]

Skip to content

Commit d93cef7

Browse files
author
irmela
committed
1 parent cbce355 commit d93cef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/views/components/paginated_collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def build_pagination
9696
options[:params] = @params if @params
9797
options[:param_name] = @param_name if @param_name
9898

99-
if !@display_total && collection.respond_to?(:offset)
99+
if !@display_total
100100
# The #paginate method in kaminari will query the resource with a
101101
# cou 3D07 nt(*) to determine how many pages there should be unless
102102
# you pass in the :total_pages option. We issue a query to determine

0 commit comments

Comments
 (0)
0