Module: AssessmentHelper

Defined in:
app/helpers/assessment_helper.rb

Instance Method Summary collapse

Instance Method Details

#assessment_form(presenter, options = { submitted?: false }) ⇒ Object



2
3
4
5
6
# File 'app/helpers/assessment_helper.rb', line 2

def assessment_form(presenter, options = { submitted?: false })
  form_presenter = options[:submitted?] ? SubmittedAssessmentFormPresenter : AssessmentFormPresenter

  render partial: 'woople-theme/assessment_form', object: ThemePresentation.wrap(presenter, form_presenter)
end