Class: Effective::CpdAuditReviewsController

Inherits:
ApplicationController
  • Object
show all
Includes:
WizardController
Defined in:
app/controllers/effective/cpd_audit_reviews_controller.rb

Instance Method Summary collapse

Instance Method Details

#render_step(the_step, options = {}, params = {}) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'app/controllers/effective/cpd_audit_reviews_controller.rb', line 15

def render_step(the_step, options = {}, params = {})
  if resource.dynamic_wizard_statement_steps.keys.include?(the_step)
    render('effective/cpd_audit_reviews/cpd_statement', options)
  elsif resource.dynamic_wizard_questionnaire_steps.keys.include?(the_step)
    render('effective/cpd_audit_reviews/cpd_audit_level_section', options)
  else
    super
  end
end