mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
17 lines
506 B
Ruby
17 lines
506 B
Ruby
module Domains
|
|
module UpdateConfirm
|
|
class ProcessAction < Base
|
|
def execute
|
|
::PaperTrail.request.whodunnit = "interaction - #{self.class.name} - #{action} by"\
|
|
" #{initiator}"
|
|
|
|
case action
|
|
when RegistrantVerification::CONFIRMED
|
|
Domains::UpdateConfirm::ProcessUpdateConfirmed.run(inputs.to_h)
|
|
when RegistrantVerification::REJECTED
|
|
Domains::UpdateConfirm::ProcessUpdateRejected.run(inputs.to_h)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|