Set updated_by when changing an GroupOrder via controller

This commit is contained in:
Patrick Gansterer 2020-10-10 20:40:22 +02:00
parent beaca7d384
commit 3d5043fd05

View file

@ -42,6 +42,7 @@ class GroupOrdersController < ApplicationController
def update
@group_order.attributes = params[:group_order]
@group_order.updated_by = current_user
begin
@group_order.save_ordering!
redirect_to group_order_url(@group_order), :notice => I18n.t('group_orders.update.notice')