Class: AuditMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/audit_mailer.rb

Instance Method Summary collapse

Instance Method Details

#failure(emails: [], package:, error:) ⇒ Object


4
5
6
7
8
9
10
# File 'app/mailers/audit_mailer.rb', line 4

def failure(emails: [], package:, error:)
  @error = error
  mail(
    to: emails | [package.user.email],
    subject: "Dark Blue Audit Failure for #{package.content_type} package #{package.external_id}"
)
end