AshDispatch.Setup (AshDispatch v0.5.0)
View SourceAutomatically sets up DeliveryReceipt resource in your consuming app.
Similar to ash_paper_trail, this creates the necessary resources for you with zero manual module creation needed.
Usage
In your Deliveries domain module:
defmodule MyApp.Deliveries do
use AshDispatch.Setup,
repo: MyApp.Repo,
user_resource: MyApp.Accounts.User
# Your domain definition continues here...
use Ash.Domain
# ... rest of domain config
endThis will automatically create MyApp.Deliveries.DeliveryReceipt with the
user relationship - completely frictionless!