mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
14 lines
314 B
Ruby
14 lines
314 B
Ruby
class Domain
|
|
module ForceDelete
|
|
class PrepareDomain
|
|
include Interactor
|
|
|
|
def call
|
|
domain = context.domain
|
|
domain.statuses_before_force_delete = domain.statuses
|
|
domain.statuses |= domain.class.STATUSES_TO_SET
|
|
domain.save(validate: false)
|
|
end
|
|
end
|
|
end
|
|
end
|