Skip to content

Commit 8699cfc

Browse files
committed
fix count display for collections with GROUP BY
1 parent 7cd7f44 commit 8699cfc

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
@@ -107,7 +107,7 @@ def page_entries_info(options = {})
107107
case collection.size
108108
when 0; I18n.t('active_admin.pagination.empty', :model => entries_name)
109109
when 1; I18n.t('active_admin.pagination.one', :model => entry_name)
110-
else; I18n.t('active_admin.pagination.one_page', :model => entries_name, :n => collection.size)
110+
else; I18n.t('active_admin.pagination.one_page', :model => entries_name, :n => collection.total_count)
111111
end
112112
else
113113
offset = collection.current_page * collection.size

0 commit comments

Comments
 (0)