Skip to content

Commit

Permalink
Set updated_by when changing an GroupOrder via controller
Browse files Browse the repository at this point in the history
  • Loading branch information
paroga committed Oct 10, 2020
1 parent beaca7d commit 3d5043f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/group_orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def edit

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')
Expand Down

0 comments on commit 3d5043f

Please sign in to comment.