Sha256: eaff04eba26777b762fb119939504c3e200b057705c1f359cbd181b5127b60a9
Contents?: true
Size: 930 Bytes
Versions: 22
Compression:
Stored size: 930 Bytes
Contents
module Effective class CpdAuditReviewsController < ApplicationController before_action(:authenticate_user!) if defined?(Devise) include Effective::WizardController resource_scope do EffectiveCpd.CpdAuditReview.deep.where(user: current_user) end page_title EffectiveResources.et('effective_cpd.chat'), only: [:chat] # Reuse the same view for all cpd_audit_level_section steps # https://github.com/zombocom/wicked/blob/v1.3.4/lib/wicked/controller/concerns/render_redirect.rb#L32 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 end end
Version data entries
22 entries across 22 versions & 1 rubygems