mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Remove usage of deleted const DEFAULT_PAGE
If params[:page] is not in the request, the results will not be paginated now
This commit is contained in:
@@ -53,7 +53,7 @@ module Api
|
||||
return products unless pagination_required?
|
||||
|
||||
products.
|
||||
page(params[:page] || DEFAULT_PAGE).
|
||||
page(params[:page]).
|
||||
per(params[:per_page] || DEFAULT_PER_PAGE)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user