mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Extract respond_to_update_succeeded from update_succeeded
This commit is contained in:
@@ -89,6 +89,10 @@ class CheckoutController < Spree::StoreController
|
||||
ResetOrderService.new(self, current_order).call
|
||||
session[:access_token] = current_order.token
|
||||
|
||||
respond_to_update_succeeded
|
||||
end
|
||||
|
||||
def respond_to_update_succeeded
|
||||
flash[:notice] = t(:order_processed_successfully)
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
||||
Reference in New Issue
Block a user