registrant update change #2557

This commit is contained in:
Priit Tark 2015-06-12 19:20:08 +03:00
parent 51d22af52b
commit 64bd2b957f
9 changed files with 68 additions and 35 deletions

View file

@ -17,12 +17,16 @@ class RegistrantVerification < ActiveRecord::Base
def domain_registrant_change_confirm!
self.action_type = DOMAIN_REGISTRANT_CHANGE
self.action = CONFIRMED
save
if save
DomainConfirmJob.enqueue domain.id, CONFIRMED
end
end
def domain_registrant_change_reject!
self.action_type = DOMAIN_REGISTRANT_CHANGE
self.action = REJECTED
save
if save
DomainConfirmJob.enqueue domain.id, REJECTED
end
end
end