Add spree helper

This commit is contained in:
Luis Ramos
2020-09-03 23:14:51 +01:00
parent 27fa04114e
commit a34c18451c

View File

@@ -211,10 +211,10 @@ class CheckoutController < Spree::StoreController
def update_succeeded_response
respond_to do |format|
format.html do
respond_with(@order, location: order_path(@order))
respond_with(@order, location: spree.order_path(@order))
end
format.json do
render json: { path: order_path(@order) }, status: :ok
render json: { path: spree.order_path(@order) }, status: :ok
end
end
end