Class: Chatterbox::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Chatterbox::Mailer
- Defined in:
- lib/consumers/email_consumer.rb
Overview
Things taken out of the hash for exception emails:
:details => a hash of details about the context of the error – ie current state, request info, etc…any info
to the exception that is domain specific
:error_class => taken from the Exception :error_message => taken from the Exception :backtrace => taken from the Exception
Constant Summary collapse
- @@sender_address =
%("Exception Notifier" <[email protected]>)
- @@exception_recipients =
[]
- @@email_prefix =
"[ERROR] "
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.reloadable? ⇒ Boolean
36 |
# File 'lib/consumers/email_consumer.rb', line 36 def self.reloadable?() false end |
Instance Method Details
#exception_notification(data = {}) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/consumers/email_consumer.rb', line 38 def exception_notification(data={}) data = data.dup.symbolize_keys content_type "text/plain" subject "#{email_prefix} Error - #{data.delete(:summary)}" recipients exception_recipients from sender_address body data end |