Module: RailsNexus::Notifications
- Defined in:
- lib/rails_nexus/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.
11 12 13 14 15 16 17 18 19 |
# File 'lib/rails_nexus/notifications.rb', line 11 def notify(exception_record) config = RailsNexus.configuration # Custom after_create callback config.after_create&.call(exception_record) # Webhooks notify_webhooks(exception_record) if config.webhooks.any? end |