Method: Effective::CpdMailer#cpd_audit_exemption_denied

Defined in:
app/mailers/effective/cpd_mailer.rb

#cpd_audit_exemption_denied(resource, opts = {}) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
# File 'app/mailers/effective/cpd_mailer.rb', line 56

def cpd_audit_exemption_denied(resource, opts = {})
  raise('expected an EffectiveCpd.CpdAudit') unless resource.kind_of?(EffectiveCpd.CpdAudit)

  @assigns = assigns_for(resource).merge(url: effective_cpd.cpd_audit_url(resource))
  @cpd_audit = resource

  subject = subject_for(__method__, 'CPD Audit Exemption Denied', resource, opts)
  headers = headers_for(resource, opts)

  mail(to: resource.user.email, subject: subject, **headers)
end