internetee-registry/app/interactions/domains/delete/do_delete.rb
2020-12-08 13:14:48 +05:00

13 lines
321 B
Ruby

module Domains
module Delete
class DoDelete < Base
def execute
::PaperTrail.request.whodunnit = "interaction - #{self.class.name}"
WhoisRecord.where(domain_id: domain.id).destroy_all
domain.destroy
compose(Domains::Delete::NotifyRegistrar, inputs)
end
end
end
end