Module: Faultline::Notifications
- Defined in:
- lib/faultline/notifications.rb
Class Method Summary collapse
-
.notify(exception_record) ⇒ Object
Called after a LoggedException is created.
Class Method Details
.notify(exception_record) ⇒ Object
Called after a LoggedException is created. Triggers webhooks and the after_create callback.
12 13 14 15 16 17 18 19 20 |
# File 'lib/faultline/notifications.rb', line 12 def notify(exception_record) config = Faultline.configuration # Custom after_create callback config.after_create&.call(exception_record) # Webhooks notify_webhooks(exception_record) if config.webhooks.any? end |