mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
17 lines
468 B
Ruby
17 lines
468 B
Ruby
module Domains
|
|
module DeleteConfirm
|
|
class ProcessAction < Base
|
|
def execute
|
|
::PaperTrail.request.whodunnit = "interaction - #{self.class.name} - #{action} by"\
|
|
" #{initiator}"
|
|
|
|
case action
|
|
when RegistrantVerification::CONFIRMED
|
|
compose(ProcessDeleteConfirmed, inputs.to_h)
|
|
when RegistrantVerification::REJECTED
|
|
compose(ProcessDeleteRejected, inputs.to_h)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|