mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
11 lines
305 B
Ruby
11 lines
305 B
Ruby
module DomainDeleteInteraction
|
|
class Delete < Base
|
|
def execute
|
|
::PaperTrail.request.whodunnit = "interaction - #{self.class.name}"
|
|
WhoisRecord.where(domain_id: domain.id).destroy_all
|
|
|
|
domain.destroy
|
|
compose(DomainDeleteInteraction::NotifyRegistrar, inputs)
|
|
end
|
|
end
|
|
end
|