Sha256: 8b4fd86fb06dff4fc21b01816ae20b8bdb0916ca617d972bb39a0d8e3a50f7b2
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 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 '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
5 entries across 5 versions & 1 rubygems