Move interactor to the Domains namespace

This commit is contained in:
Alex Sherman 2020-11-30 17:53:36 +05:00
parent 6f0b8b15a3
commit 42012863e2
9 changed files with 125 additions and 117 deletions

View file

@ -0,0 +1,18 @@
module Domains
module UpdateConfirm
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)
preclean_pendings
clean_pendings!
end
end
end
end
end