Send order-finish-notifications in background.

This commit is contained in:
Benjamin Meichsner 2009-03-11 16:58:31 +01:00
parent 37c9e2aeaf
commit ce2156d75f
4 changed files with 14 additions and 15 deletions

View file

@ -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