Class: Effective::CpdAuditReviewsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Effective::CpdAuditReviewsController
- Includes:
- WizardController
- Defined in:
- app/controllers/effective/cpd_audit_reviews_controller.rb
Instance Method Summary collapse
-
#render_step(the_step, options = {}, params = {}) ⇒ Object
Reuse the same view for all cpd_audit_level_section steps github.com/zombocom/wicked/blob/v1.3.4/lib/wicked/controller/concerns/render_redirect.rb#L32.
Instance Method Details
#render_step(the_step, options = {}, params = {}) ⇒ Object
Reuse the same view for all cpd_audit_level_section steps github.com/zombocom/wicked/blob/v1.3.4/lib/wicked/controller/concerns/render_redirect.rb#L32
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, = {}, params = {}) if resource.dynamic_wizard_statement_steps.keys.include?(the_step) render('effective/cpd_audit_reviews/cpd_statement', ) elsif resource.dynamic_wizard_questionnaire_steps.keys.include?(the_step) render('effective/cpd_audit_reviews/cpd_audit_level_section', ) else super end end |