internetee-registry/app/interactors/domain/force_delete/prepare_domain.rb
2020-11-09 17:50:15 +05:00

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