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:
luisramos0
2020-02-03 15:04:34 +00:00
parent 4c51d60bfd
commit a5fe5fb448

View File

@@ -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