Class: Rearview::AlertMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/rearview/alert_mailer.rb

Instance Method Summary collapse

Instance Method Details

#alert_email(recipient, job, result) ⇒ Object



6
7
8
9
10
# File 'app/mailers/rearview/alert_mailer.rb', line 6

def alert_email(recipient, job, result)
  @job    = job
  @result = result
  mail(:to => recipient, :subject => "[Rearview ALERT] #{job.name}")
end