Move interactor to namespace

This commit is contained in:
Alex Sherman 2020-11-30 16:20:24 +05:00
parent 4c7f9f2026
commit 30ddf83ee4
8 changed files with 40 additions and 34 deletions

View file

@ -0,0 +1,13 @@
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