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

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