mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Move interactor to namespace
This commit is contained in:
parent
4c7f9f2026
commit
30ddf83ee4
8 changed files with 40 additions and 34 deletions
13
app/interactions/domains/delete/do_delete.rb
Normal file
13
app/interactions/domains/delete/do_delete.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue