mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Move all the existing interactors to Domains namespace
This commit is contained in:
parent
09a58fa432
commit
5363c546a5
34 changed files with 250 additions and 222 deletions
|
@ -53,13 +53,13 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
|
|||
end
|
||||
|
||||
def schedule_force_delete(type: :fast_track, notify_by_email: false)
|
||||
ForceDeleteInteraction::SetForceDelete.run(domain: self,
|
||||
type: type,
|
||||
notify_by_email: notify_by_email)
|
||||
Domains::ForceDelete::SetForceDelete.run(domain: self,
|
||||
type: type,
|
||||
notify_by_email: notify_by_email)
|
||||
end
|
||||
|
||||
def cancel_force_delete
|
||||
CancelForceDeleteInteraction::CancelForceDelete.run(domain: self)
|
||||
Domains::CancelForceDelete::CancelForceDelete.run(domain: self)
|
||||
end
|
||||
|
||||
def outzone_date
|
||||
|
|
|
@ -418,7 +418,7 @@ class Domain < ApplicationRecord
|
|||
pending_delete_confirmation!
|
||||
save(validate: false) # should check if this did succeed
|
||||
|
||||
DomainDeleteConfirmInteraction::SendRequest.run(domain: self)
|
||||
Domains::DeleteConfirm::SendRequest.run(domain: self)
|
||||
end
|
||||
|
||||
def cancel_pending_delete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue