Class: Tocsin::NotificationJob
- Inherits:
-
Object
- Object
- Tocsin::NotificationJob
- Defined in:
- lib/tocsin.rb
Overview
Job to notify admins via email of a problem.
Class Method Summary collapse
-
.perform(alert_id) ⇒ Object
Look up the given alert and notify recipients of it.
Class Method Details
.perform(alert_id) ⇒ Object
Look up the given alert and notify recipients of it.
105 106 107 108 109 |
# File 'lib/tocsin.rb', line 105 def self.perform(alert_id) Tocsin.sound(alert_id) rescue ActiveRecord::RecordNotFound Tocsin.logger.error { "Raised alert with ID=#{alert_id} but couldn't find that alert." } end |