mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
13 lines
321 B
Ruby
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
|
|
Domains::Delete::NotifyRegistrar.run(inputs.to_h)
|
|
end
|
|
end
|
|
end
|
|
end
|