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_audit_label, #cpd_audit_level_label, #cpd_audit_levels_label, #cpd_audit_review_label, #cpd_audit_reviews_label, #cpd_auditee_label, #cpd_auditees_label, #cpd_audits_label, #cpd_credit_label, #cpd_credits_label, #cpd_cycle_label, #cpd_cycles_label, #cpd_name_label, #cpd_reviewer_label, #cpd_reviewers_label, #cpd_rule_formula_hint, #cpd_score, #cpd_statement_label, #cpd_statement_submit_label, #cpd_statements_label, #cpd_target_label, #cpd_targets_label, #effective_cpd_categories
Instance Method Details
#permitted_params ⇒ Object
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 47 def permitted_params model = (params.key?(:effective_cpd_statement) ? :effective_cpd_statement : :cpd_statement) case step when :start params.require(model).permit(:current_step) when :activities params.require(model).permit(:current_step) when :agreements params.require(model).permit(:current_step, :confirm_read, :confirm_factual, files: []) when :submit params.require(model).permit(:current_step, :confirm_readonly) when :complete raise('unexpected post to complete') else raise('unexpected step') end end |