Merge branch 'master' into 3-0-stable-apr3

This commit is contained in:
Luis Ramos
2020-04-03 18:26:26 +01:00
126 changed files with 7012 additions and 542 deletions

View File

@@ -1,5 +1,5 @@
module Api
class CustomersController < BaseController
class CustomersController < Api::BaseController
skip_authorization_check only: :index
def index

View File

@@ -1,7 +1,7 @@
require 'api/admin/enterprise_serializer'
module Api
class EnterpriseAttachmentController < BaseController
class EnterpriseAttachmentController < Api::BaseController
class MissingImplementationError < StandardError; end
class UnknownEnterpriseAuthorizationActionError < StandardError; end

View File

@@ -1,5 +1,5 @@
module Api
class EnterpriseFeesController < BaseController
class EnterpriseFeesController < Api::BaseController
respond_to :json
def destroy

View File

@@ -1,5 +1,5 @@
module Api
class LogosController < EnterpriseAttachmentController
class LogosController < Api::EnterpriseAttachmentController
private
def attachment_name

View File

@@ -1,5 +1,5 @@
module Api
class OrderCyclesController < BaseController
class OrderCyclesController < Api::BaseController
include EnterprisesHelper
respond_to :json

View File

@@ -1,5 +1,5 @@
module Api
class OrdersController < BaseController
class OrdersController < Api::BaseController
def show
authorize! :read, order
render json: order, serializer: Api::OrderDetailedSerializer, current_order: order

View File

@@ -1,5 +1,5 @@
module Api
class ProductImagesController < BaseController
class ProductImagesController < Api::BaseController
respond_to :json
def update_product_image

View File

@@ -1,5 +1,5 @@
module Api
class PromoImagesController < EnterpriseAttachmentController
class PromoImagesController < Api::EnterpriseAttachmentController
private
def attachment_name