ruby syntaxt upadtes #2557

This commit is contained in:
Priit Tark 2015-06-16 22:35:40 +03:00
parent 1b66e74108
commit 9c43e8e302
5 changed files with 13 additions and 15 deletions

View file

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