Apply publish/subscribe for OrderArticle#update
This commit is contained in:
parent
27a73be68f
commit
81dfe8110c
6 changed files with 46 additions and 4 deletions
|
|
@ -29,6 +29,12 @@ class Finance::BalancingController < Finance::BaseController
|
|||
|
||||
render layout: false if request.xhr?
|
||||
end
|
||||
|
||||
def new_on_order_article_update # See publish/subscribe design pattern in /doc.
|
||||
@order_article = OrderArticle.find(params[:order_article_id])
|
||||
|
||||
render :layout => false
|
||||
end
|
||||
|
||||
def update_summary
|
||||
@order = Order.find(params[:id])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue