Send order-finish-notifications in background.
This commit is contained in:
parent
37c9e2aeaf
commit
ce2156d75f
4 changed files with 14 additions and 15 deletions
|
|
@ -95,6 +95,7 @@ class OrdersController < ApplicationController
|
|||
def finish
|
||||
order = Order.find(params[:id])
|
||||
order.finish!(@current_user)
|
||||
call_rake "foodsoft:notify_order_finished", :order_id => order.id
|
||||
flash[:notice] = "Die Bestellung wurde beendet."
|
||||
redirect_to order
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue