module ExceptionMailer
Attributes
account[RW]
auth_method[RW]
from[RW]
host[RW]
password[RW]
port[RW]
server[RW]
subject[RW]
to[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/exception_mailer.rb, line 7 def configure yield self end
mail_exceptions(opts={}) { || ... }
click to toggle source
# File lib/exception_mailer.rb, line 11 def mail_exceptions(opts={}) yield rescue Exception => e Mailer.new(opts).send_notification(e) raise e end
Public Instance Methods
mail_exceptions(opts={}, &block)
click to toggle source
# File lib/exception_mailer.rb, line 24 def mail_exceptions(opts={}, &block) ExceptionMailer.mail_exceptions(opts, &block) end