Sha256: bd188bd699c4f3dedc7d96a6d96abf5d2dbb32eea39ce2b0ac1cd1fd8afe1a92
Contents?: true
Size: 735 Bytes
Versions: 23
Compression:
Stored size: 735 Bytes
Contents
module Effective class CpdAuditsController < ApplicationController before_action(:authenticate_user!) if defined?(Devise) include Effective::WizardController resource_scope -> { EffectiveCpd.CpdAudit.deep.where(user: current_user) } submit :resubmit, 'Resubmit' 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 = {}) return super unless resource.dynamic_wizard_steps.keys.include?(the_step) render('cpd_audit_level_section', options) end end end
Version data entries
23 entries across 23 versions & 1 rubygems