Use shorthand

This commit is contained in:
Matt Jankowski 2025-07-21 11:14:05 -04:00
parent bf24de759a
commit 7c2847e12d

View File

@ -92,7 +92,7 @@ module Admin
# Disallow accidental downgrade of an existing domain block record
if existing_domain_block.present? && !@domain_block.stricter_than?(existing_domain_block)
@domain_block.validate
flash.now[:alert] = unblock_first_alert
flash.now.alert = unblock_first_alert
@domain_block.errors.delete(:domain)
render :new
end