method

emit_event

rails latest stable - Class: ActiveSupport::StructuredEventSubscriber

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

emit_event(name, payload = nil, caller_depth: 1, **kwargs)
public

Emit a structured event via Rails.event.notify.

Arguments

  • name - The event name as a string or symbol

  • payload - The event payload as a hash or object

  • caller_depth - Stack depth for source location (default: 1)

  • kwargs - Additional payload data merged with the payload hash