fix depracation warnings from kaminary

This commit is contained in:
Paulo Vilarinho
2021-01-05 00:33:29 -03:00
parent ccac16c5b2
commit efd4b97f5c

View File

@@ -6,7 +6,7 @@ module PaginationData
def pagination_data(objects, default_page: nil, default_per_page: nil)
{
results: objects.total_count,
pages: objects.num_pages,
pages: objects.total_pages,
page: (params[:page] || default_page).to_i,
per_page: (params[:per_page] || default_per_page).to_i
}