mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 09:51:24 +00:00
Use shorthand
This commit is contained in:
parent
bf24de759a
commit
7c2847e12d
|
@ -92,7 +92,7 @@ module Admin
|
||||||
# Disallow accidental downgrade of an existing domain block record
|
# Disallow accidental downgrade of an existing domain block record
|
||||||
if existing_domain_block.present? && !@domain_block.stricter_than?(existing_domain_block)
|
if existing_domain_block.present? && !@domain_block.stricter_than?(existing_domain_block)
|
||||||
@domain_block.validate
|
@domain_block.validate
|
||||||
flash.now[:alert] = unblock_first_alert
|
flash.now.alert = unblock_first_alert
|
||||||
@domain_block.errors.delete(:domain)
|
@domain_block.errors.delete(:domain)
|
||||||
render :new
|
render :new
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user