mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Registrant domain delete confirmation #2557
This commit is contained in:
parent
f34a7193d4
commit
912ad63fd7
7 changed files with 130 additions and 16 deletions
|
@ -17,12 +17,24 @@ class RegistrantVerification < ActiveRecord::Base
|
|||
def domain_registrant_change_confirm!
|
||||
self.action_type = DOMAIN_REGISTRANT_CHANGE
|
||||
self.action = CONFIRMED
|
||||
DomainConfirmJob.enqueue domain.id, CONFIRMED if save
|
||||
DomainUpdateConfirmJob.enqueue domain.id, CONFIRMED if save
|
||||
end
|
||||
|
||||
def domain_registrant_change_reject!
|
||||
self.action_type = DOMAIN_REGISTRANT_CHANGE
|
||||
self.action = REJECTED
|
||||
DomainConfirmJob.enqueue domain.id, REJECTED if save
|
||||
DomainUpdateConfirmJob.enqueue domain.id, REJECTED if save
|
||||
end
|
||||
|
||||
def domain_registrant_delete_confirm!
|
||||
self.action_type = DOMAIN_DELETE
|
||||
self.action = CONFIRMED
|
||||
DomainDeleteConfirmJob.enqueue domain.id, CONFIRMED if save
|
||||
end
|
||||
|
||||
def domain_registrant_delete_reject!
|
||||
self.action_type = DOMAIN_DELETE
|
||||
self.action = REJECTED
|
||||
DomainDeleteConfirmJob.enqueue domain.id, REJECTED if save
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue