Skip to content

Commit

Permalink
Make all public controllers inherit the V1::PublicController
Browse files Browse the repository at this point in the history
  • Loading branch information
janwerkhoven committed Feb 10, 2024
1 parent 4ba5771 commit c789335
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/controllers/v1/public/article_categories_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class ArticleCategoriesController < ApplicationController
class ArticleCategoriesController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/company_markets_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class CompanyMarketsController < ApplicationController
class CompanyMarketsController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/containers_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class ContainersController < ApplicationController
class ContainersController < V1::PublicController
def index
allow_index
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class DocumentCategoriesController < ApplicationController
class DocumentCategoriesController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/languages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class LanguagesController < ApplicationController
class LanguagesController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/person_images_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class PersonImagesController < ApplicationController
class PersonImagesController < V1::PublicController
def index
forbidden
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/product_features_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class ProductFeaturesController < ApplicationController
class ProductFeaturesController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/product_uses_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class ProductUsesController < ApplicationController
class ProductUsesController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/qualities_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class QualitiesController < ApplicationController
class QualitiesController < V1::PublicController
def index
allow_index
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class SimulationRequestsController < ApplicationController
class SimulationRequestsController < V1::PublicController
def index
forbidden
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/videos_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class VideosController < ApplicationController
class VideosController < V1::PublicController
def index
allow_index
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v1/public/webinars_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module V1
module Public
class WebinarsController < ApplicationController
class WebinarsController < V1::PublicController
def index
allow_index
end
Expand Down

0 comments on commit c789335

Please sign in to comment.