mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Remove domain namespace
This commit is contained in:
parent
bce39e3404
commit
e62f0a077a
19 changed files with 143 additions and 157 deletions
13
app/interactions/force_delete_interaction/prepare_domain.rb
Normal file
13
app/interactions/force_delete_interaction/prepare_domain.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
module ForceDeleteInteraction
|
||||
class PrepareDomain < Base
|
||||
STATUSES_TO_SET = [DomainStatus::FORCE_DELETE,
|
||||
DomainStatus::SERVER_RENEW_PROHIBITED,
|
||||
DomainStatus::SERVER_TRANSFER_PROHIBITED].freeze
|
||||
|
||||
def execute
|
||||
domain.statuses_before_force_delete = domain.statuses
|
||||
domain.statuses |= STATUSES_TO_SET
|
||||
domain.save(validate: false)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue