Method: EffectiveCpdAuditReview#cpd_statement

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

#cpd_statement(wizard_step) ⇒ Object



219
220
221
222
# File 'app/models/concerns/effective_cpd_audit_review.rb', line 219

def cpd_statement(wizard_step)
  cpd_cycle_id = (wizard_step.to_s.split('statement').last.to_i rescue false)
  auditee_cpd_statements.find { |cpd_statement| cpd_statement.cpd_cycle_id == cpd_cycle_id }
end