From 3751f73edf3c3ba32f7fdb2b3f81b51a0033eefd Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 14 Mar 2023 20:22:31 -0600 Subject: Mueve skip_before_action a clase padre --- app/controllers/api/companies_controller.rb | 3 --- app/controllers/api/products_controller.rb | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 app/controllers/api/products_controller.rb (limited to 'app/controllers') diff --git a/app/controllers/api/companies_controller.rb b/app/controllers/api/companies_controller.rb index fd72a8a..63d30c8 100644 --- a/app/controllers/api/companies_controller.rb +++ b/app/controllers/api/companies_controller.rb @@ -3,9 +3,6 @@ module Api # CompaniesController class CompaniesController < MasterController - skip_before_action :validate_jwt, only: %i[show index] - skip_before_action :assert_master_role, only: %i[show index] - def index @companies = Company.page(params[:page]) diff --git a/app/controllers/api/products_controller.rb b/app/controllers/api/products_controller.rb new file mode 100644 index 0000000..cf542d4 --- /dev/null +++ b/app/controllers/api/products_controller.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module Api + # ProductsController + class ProductsController + end +end -- cgit v1.2.3