From a5fe5fb44810db5bbaa33eb12f3a61f56ceab981 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Mon, 3 Feb 2020 15:04:34 +0000 Subject: [PATCH] Remove usage of deleted const DEFAULT_PAGE If params[:page] is not in the request, the results will not be paginated now --- app/controllers/api/exchange_products_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/exchange_products_controller.rb b/app/controllers/api/exchange_products_controller.rb index e88a0e2bb2..cb28bbbec6 100644 --- a/app/controllers/api/exchange_products_controller.rb +++ b/app/controllers/api/exchange_products_controller.rb @@ -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