Class: AlertMailer

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

Instance Method Summary collapse

Instance Method Details

#alert_failing_email(alert) ⇒ Object



4
5
6
7
# File 'app/mailers/alert_mailer.rb', line 4

def alert_failing_email(alert)
  @alert = alert
  mail(to: @alert.email, subject: "Your Aleph alert '#{@alert.query_title}' has triggered")
end