View Source Ash.Notifier behaviour (ash v3.2.3)

A notifier is an extension that receives various events

Summary

Functions

Sends any notifications that can be sent, and returns the rest.

Callbacks

@callback notify(Ash.Notifier.Notification.t()) :: :ok
Link to this callback

requires_original_data?(t, action)

View Source
@callback requires_original_data?(Ash.Resource.t(), Ash.Resource.Actions.action()) ::
  boolean()

Functions

Link to this function

notify(resource_notifications)

View Source

Sends any notifications that can be sent, and returns the rest.

A notification can only be sent if you are not currently in a transaction for the resource in question.