Set updated_by when changing an GroupOrder via controller
This commit is contained in:
parent
beaca7d384
commit
3d5043fd05
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ class GroupOrdersController < ApplicationController
|
||||||
|
|
||||||
def update
|
def update
|
||||||
@group_order.attributes = params[:group_order]
|
@group_order.attributes = params[:group_order]
|
||||||
|
@group_order.updated_by = current_user
|
||||||
begin
|
begin
|
||||||
@group_order.save_ordering!
|
@group_order.save_ordering!
|
||||||
redirect_to group_order_url(@group_order), :notice => I18n.t('group_orders.update.notice')
|
redirect_to group_order_url(@group_order), :notice => I18n.t('group_orders.update.notice')
|
||||||
|
|
Loading…
Reference in a new issue