Various small rails 5 adoptions

This commit is contained in:
Patrick Gansterer 2020-08-12 13:38:18 +02:00
parent 3a6276aece
commit 266e9337be
4 changed files with 5 additions and 5 deletions

View file

@ -94,7 +94,7 @@ class OrdersController < ApplicationController
# Update an existing order.
def update
@order = Order.find params[:id]
if @order.update_attributes params[:order]
if @order.update_attributes params[:order].merge(updated_by: current_user)
flash[:notice] = I18n.t('orders.update.notice')
redirect_to :action => 'show', :id => @order
else