From 6f2c685ae64abbc423cd28349db50623a619a682 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Mon, 31 Oct 2022 12:30:41 -0400 Subject: [PATCH] fix: fix depend on resources to depend on each resource --- lib/ash/api/info.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ash/api/info.ex b/lib/ash/api/info.ex index f9d0dd17..58788609 100644 --- a/lib/ash/api/info.ex +++ b/lib/ash/api/info.ex @@ -29,8 +29,9 @@ defmodule Ash.Api.Info do defmacro depend_on_resources(api) do quote do if registry = Ash.Api.Info.registry(unquote(api)) do + @external_resource List.to_string(registry.module_info(:compile)[:source]) for entry <- Ash.Registry.Info.entries(registry) do - @external_resource List.to_string(registry.module_info(:compile)[:source]) + @external_resource List.to_string(entry.module_info(:compile)[:source]) entry end else