Class: RailsAuditLog::Streaming::NotificationsAdapter
- Inherits:
-
Object
- Object
- RailsAuditLog::Streaming::NotificationsAdapter
- Defined in:
- lib/rails_audit_log/streaming/notifications_adapter.rb
Overview
Publishes each audit entry synchronously via ActiveSupport::Notifications. Zero external dependencies — subscribe with ActiveSupport::Notifications.subscribe.
Constant Summary collapse
- EVENT =
"rails_audit_log.entry_created"
Instance Method Summary collapse
Instance Method Details
#publish(entry) ⇒ Object
16 17 18 |
# File 'lib/rails_audit_log/streaming/notifications_adapter.rb', line 16 def publish(entry) ActiveSupport::Notifications.instrument(EVENT, entry: entry) end |