Class: ErrorMailer

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

Instance Method Summary collapse

Instance Method Details

#exception_email(ex) ⇒ Object



3
4
5
6
# File 'app/mailers/error_mailer.rb', line 3

def exception_email ex
  @ex = ex
  mail( :to => NotifyOnError.email_to, :from => NotifyOnError.email_from, :subject => 'An Exception Occurred'  )
end