Class: WorksWizardSubmissionCompleteController

Inherits:
ApplicationController show all
Defined in:
app/controllers/works_wizard_submission_complete_controller.rb

Overview

Controller to handle the completion of a submission

The wizard flow is shown in the [mermaid diagram here](github.com/pulibrary/pdc_describe/blob/main/docs/wizard_flow.md).

Instance Method Summary collapse

Methods inherited from ApplicationController

#new_session_path

Instance Method Details

#showObject

get /works/policy



12
13
14
15
16
17
18
19
# File 'app/controllers/works_wizard_submission_complete_controller.rb', line 12

def show
  @work = Work.find(params[:id])
  @email = if @work.group == Group.plasma_laboratory
             "publications@pppl.gov"
           else
             "prds@princeton.edu"
           end
end