Method: EffectiveCpdAuditReview#cpd_audit_level_section

Defined in:
app/models/concerns/effective_cpd_audit_review.rb

#cpd_audit_level_section(wizard_step) ⇒ Object

The dynamic CPD Audit Level Sections steps



197
198
199
200
# File 'app/models/concerns/effective_cpd_audit_review.rb', line 197

def cpd_audit_level_section(wizard_step)
  position = (wizard_step.to_s.split('section').last.to_i rescue false)
  cpd_audit_level.cpd_audit_level_sections.find { |section| (section.position + 1) == position }
end