From 9a62ba8ed561d44690b5702d778b2cef04b9617e Mon Sep 17 00:00:00 2001 From: Paulo Vilarinho Date: Tue, 5 Jan 2021 11:59:49 -0300 Subject: [PATCH] remove hound errors --- app/controllers/api/exchange_products_controller.rb | 1 - app/controllers/api/products_controller.rb | 2 -- 2 files changed, 3 deletions(-) diff --git a/app/controllers/api/exchange_products_controller.rb b/app/controllers/api/exchange_products_controller.rb index a4385f8330..9a19a30e48 100644 --- a/app/controllers/api/exchange_products_controller.rb +++ b/app/controllers/api/exchange_products_controller.rb @@ -6,7 +6,6 @@ module Api class ExchangeProductsController < Api::BaseController include PaginationData - DEFAULT_PER_PAGE = 100 skip_authorization_check only: [:index] diff --git a/app/controllers/api/products_controller.rb b/app/controllers/api/products_controller.rb index 617e4d90ac..3f466129d4 100644 --- a/app/controllers/api/products_controller.rb +++ b/app/controllers/api/products_controller.rb @@ -4,11 +4,9 @@ require 'spree/core/product_duplicator' module Api class ProductsController < Api::BaseController include PaginationData - respond_to :json DEFAULT_PER_PAGE = 15 - skip_authorization_check only: [:show, :bulk_products, :overridable] def show