Fix inheritance issue with specs on Semaphore

This commit is contained in:
François Turbelin
2020-09-02 22:52:08 +02:00
parent 6508897e3d
commit 59fb2abc5d
5 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
# Controller used to provide the API products for the DFC application
module DfcProvider
module Api
class BaseController < ::ActionController::Base
class BaseController < ActionController::Base
rescue_from ActiveRecord::RecordNotFound, with: :not_found
before_action :check_authorization,

View File

@@ -3,7 +3,7 @@
# Controller used to provide the API products for the DFC application
module DfcProvider
module Api
class CatalogItemsController < BaseController
class CatalogItemsController < DfcProvider::Api::BaseController
def index
render json: current_user, serializer: DfcProvider::PersonSerializer
end

View File

@@ -3,7 +3,7 @@
# Controller used to provide the CatalogItem API for the DFC application
module DfcProvider
module Api
class EnterprisesController < BaseController
class EnterprisesController < DfcProvider::Api::BaseController
def show
render json: current_enterprise, serializer: DfcProvider::EnterpriseSerializer
end

View File

@@ -3,7 +3,7 @@
# Controller used to provide the People API for the DFC application
module DfcProvider
module Api
class PeopleController < BaseController
class PeopleController < DfcProvider::Api::BaseController
skip_before_action :check_enterprise
before_action :check_user_accessibility

View File

@@ -3,7 +3,7 @@
# Controller used to provide the SuppliedProducts API for the DFC application
module DfcProvider
module Api
class SuppliedProductsController < BaseController
class SuppliedProductsController < DfcProvider::Api::BaseController
def show
render json: variant, serializer: DfcProvider::SuppliedProductSerializer
end