mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Fix inheritance issue with specs on Semaphore
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user