Skip to content

Commit

Permalink
Fix: #542 カスタム絵文字を編集した回数だけ「追加しました」ログが記録される
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Mar 5, 2024
1 parent 0ed5851 commit 66a9ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/custom_emojis_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def update
@custom_emoji.assign_attributes(update_params)

if @custom_emoji.save
log_action :create, @custom_emoji
log_action :update, @custom_emoji
redirect_to admin_custom_emojis_path(filter_params), notice: I18n.t('admin.custom_emojis.updated_msg')
else
render :new
Expand Down

0 comments on commit 66a9ff5

Please sign in to comment.