From c78933548a46bc7f8ecd2faa90d1df2bb4c77ea7 Mon Sep 17 00:00:00 2001 From: Jan Werkhoven Date: Sat, 10 Feb 2024 21:06:02 +1100 Subject: [PATCH] Make all public controllers inherit the V1::PublicController --- app/controllers/v1/public/article_categories_controller.rb | 2 +- app/controllers/v1/public/company_markets_controller.rb | 2 +- app/controllers/v1/public/containers_controller.rb | 2 +- app/controllers/v1/public/document_categories_controller.rb | 2 +- app/controllers/v1/public/languages_controller.rb | 2 +- app/controllers/v1/public/person_images_controller.rb | 2 +- app/controllers/v1/public/product_features_controller.rb | 2 +- app/controllers/v1/public/product_uses_controller.rb | 2 +- app/controllers/v1/public/qualities_controller.rb | 2 +- app/controllers/v1/public/simulation_requests_controller.rb | 2 +- app/controllers/v1/public/videos_controller.rb | 2 +- app/controllers/v1/public/webinars_controller.rb | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/controllers/v1/public/article_categories_controller.rb b/app/controllers/v1/public/article_categories_controller.rb index d4134afa..238923ee 100644 --- a/app/controllers/v1/public/article_categories_controller.rb +++ b/app/controllers/v1/public/article_categories_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class ArticleCategoriesController < ApplicationController + class ArticleCategoriesController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/company_markets_controller.rb b/app/controllers/v1/public/company_markets_controller.rb index 89ab2ef7..cf9f91ef 100644 --- a/app/controllers/v1/public/company_markets_controller.rb +++ b/app/controllers/v1/public/company_markets_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class CompanyMarketsController < ApplicationController + class CompanyMarketsController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/containers_controller.rb b/app/controllers/v1/public/containers_controller.rb index 8f1550bb..a8e6dabc 100644 --- a/app/controllers/v1/public/containers_controller.rb +++ b/app/controllers/v1/public/containers_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class ContainersController < ApplicationController + class ContainersController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/document_categories_controller.rb b/app/controllers/v1/public/document_categories_controller.rb index b72f8561..30bbe20c 100644 --- a/app/controllers/v1/public/document_categories_controller.rb +++ b/app/controllers/v1/public/document_categories_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class DocumentCategoriesController < ApplicationController + class DocumentCategoriesController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/languages_controller.rb b/app/controllers/v1/public/languages_controller.rb index e8d49d7f..67ecac03 100644 --- a/app/controllers/v1/public/languages_controller.rb +++ b/app/controllers/v1/public/languages_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class LanguagesController < ApplicationController + class LanguagesController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/person_images_controller.rb b/app/controllers/v1/public/person_images_controller.rb index 143fc82b..ccbc1a25 100644 --- a/app/controllers/v1/public/person_images_controller.rb +++ b/app/controllers/v1/public/person_images_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class PersonImagesController < ApplicationController + class PersonImagesController < V1::PublicController def index forbidden end diff --git a/app/controllers/v1/public/product_features_controller.rb b/app/controllers/v1/public/product_features_controller.rb index e1b27934..84488fc7 100644 --- a/app/controllers/v1/public/product_features_controller.rb +++ b/app/controllers/v1/public/product_features_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class ProductFeaturesController < ApplicationController + class ProductFeaturesController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/product_uses_controller.rb b/app/controllers/v1/public/product_uses_controller.rb index 4b240975..5d7a51aa 100644 --- a/app/controllers/v1/public/product_uses_controller.rb +++ b/app/controllers/v1/public/product_uses_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class ProductUsesController < ApplicationController + class ProductUsesController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/qualities_controller.rb b/app/controllers/v1/public/qualities_controller.rb index 4fd586cd..01b123b3 100644 --- a/app/controllers/v1/public/qualities_controller.rb +++ b/app/controllers/v1/public/qualities_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class QualitiesController < ApplicationController + class QualitiesController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/simulation_requests_controller.rb b/app/controllers/v1/public/simulation_requests_controller.rb index 5e97592c..472fd1d5 100644 --- a/app/controllers/v1/public/simulation_requests_controller.rb +++ b/app/controllers/v1/public/simulation_requests_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class SimulationRequestsController < ApplicationController + class SimulationRequestsController < V1::PublicController def index forbidden end diff --git a/app/controllers/v1/public/videos_controller.rb b/app/controllers/v1/public/videos_controller.rb index ab71d9f0..dae62d64 100644 --- a/app/controllers/v1/public/videos_controller.rb +++ b/app/controllers/v1/public/videos_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class VideosController < ApplicationController + class VideosController < V1::PublicController def index allow_index end diff --git a/app/controllers/v1/public/webinars_controller.rb b/app/controllers/v1/public/webinars_controller.rb index afb032f4..d06ff9c4 100644 --- a/app/controllers/v1/public/webinars_controller.rb +++ b/app/controllers/v1/public/webinars_controller.rb @@ -1,6 +1,6 @@ module V1 module Public - class WebinarsController < ApplicationController + class WebinarsController < V1::PublicController def index allow_index end