Fix issue with nil current_order where shipping_method serializer requires a current_order to calculate the shipping fees

This commit is contained in:
luisramos0
2019-09-24 16:57:48 +01:00
parent 2f60a85593
commit baa09b88f7
2 changed files with 9 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ module Api
class OrdersController < BaseController
def show
authorize! :read, order
render json: order, serializer: Api::OrderDetailedSerializer
render json: order, serializer: Api::OrderDetailedSerializer, current_order: order
end
def index