Class: ExceptionAlarm::Notifier
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ExceptionAlarm::Notifier
- Defined in:
- lib/exception_alarm/notifier.rb
Instance Method Summary collapse
Instance Method Details
#alarm(env, exception) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/exception_alarm/notifier.rb', line 10 def alarm(env, exception) @env = env @exception = exception mail( from: self.class.sender, to: self.class.recipients, subject: "#{self.class.prefix} (#{@exception.class}) #{@exception..inspect}" ) end |