Merge branch 'story/105754008-confirm-domain-change' into staging

This commit is contained in:
Vladimir Krylov 2015-10-26 19:40:30 +02:00
commit da937acc34

View file

@ -14,6 +14,8 @@ class DomainUpdateConfirmJob < Que::Job
DomainMailer.pending_update_rejected_notification_for_new_registrant(domain).deliver_now
domain.poll_message!(:poll_pending_update_rejected_by_registrant)
domain.clean_pendings!
domain.instance_variable_set("@changed_attributes", domain.changed_attributes.merge("statuses"=>[]))
domain.save
end
destroy # it's best to destroy the job in the same transaction
end