internetee-registry/app/interactions/domain_update_confirm_interaction/process_update_rejected.rb

16 lines
503 B
Ruby

module DomainUpdateConfirmInteraction
class ProcessUpdateRejected < Base
def execute
ActiveRecord::Base.transaction do
RegistrantChangeMailer.rejected(domain: domain,
registrar: domain.registrar,
registrant: domain.registrant).deliver_now
notify_registrar(:poll_pending_update_rejected_by_registrant)
domain.preclean_pendings
domain.clean_pendings!
end
end
end
end