Merge remote-tracking branch 'parent/main' into kb_development

This commit is contained in:
KMY 2023-11-02 10:24:38 +09:00
commit 991c0dfddf
63 changed files with 547 additions and 357 deletions

View file

@ -33,7 +33,7 @@ module Admin
# Disallow accidentally downgrading a domain block
if existing_domain_block.present? && !@domain_block.stricter_than?(existing_domain_block)
@domain_block.save
@domain_block.validate
flash.now[:alert] = I18n.t('admin.domain_blocks.existing_domain_block_html', name: existing_domain_block.domain, unblock_url: admin_domain_block_path(existing_domain_block)).html_safe
@domain_block.errors.delete(:domain)
return render :new