Fix: #542 カスタム絵文字を編集した回数だけ「追加しました」ログが記録される (#634)

This commit is contained in:
KMY(雪あすか) 2024-03-05 12:38:48 +09:00 committed by GitHub
parent 0a3007a9b0
commit cfb808b915
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ module Admin
@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