mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
fix depracation warnings from kaminary
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user