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

Version Path
effective_cpd-1.7.2 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.7.1 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.7.0 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.6.5 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.6.4 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.6.3 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.6.2 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.6.1 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.6.0 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.5.1 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.5.0 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.8 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.7 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.6 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.5 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.4 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.3 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.2 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.1 app/controllers/effective/cpd_audits_controller.rb
effective_cpd-1.4.0 app/controllers/effective/cpd_audits_controller.rb