Class: Effective::CpdStatementsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Effective::CpdStatementsController
- Includes:
- WizardController, EffectiveCpdHelper
- Defined in:
- app/controllers/effective/cpd_statements_controller.rb
Instance Method Summary collapse
Methods included from EffectiveCpdHelper
#cpd_credit_label, #cpd_credits_label, #cpd_cycle_label, #cpd_cycles_label, #cpd_rule_formula_hint, #cpd_score, #cpd_statement_submit_label, #effective_cpd_categories
Instance Method Details
#permitted_params ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'app/controllers/effective/cpd_statements_controller.rb', line 46 def permitted_params case step when :start params.require(:effective_cpd_statement).permit(:current_step) when :activities params.require(:effective_cpd_statement).permit(:current_step) when :agreements params.require(:effective_cpd_statement).permit( :current_step, :confirm_read, :confirm_factual, files: [] ) when :submit params.require(:effective_cpd_statement).permit(:current_step, :confirm_readonly) when :complete raise('unexpected post to complete') else raise('unexpected step') end end |