From ac3b2f4bccd01977537a6be25993810138bc94ec Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Mon, 23 Dec 2024 16:07:13 -0500 Subject: [PATCH] improvement: add otp_app option to use Ash.Domain --- lib/mix/tasks/gen/ash.gen.domain.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mix/tasks/gen/ash.gen.domain.ex b/lib/mix/tasks/gen/ash.gen.domain.ex index 79557cbd5..77625f22c 100644 --- a/lib/mix/tasks/gen/ash.gen.domain.ex +++ b/lib/mix/tasks/gen/ash.gen.domain.ex @@ -34,7 +34,8 @@ if Code.ensure_loaded?(Igniter) do else igniter |> Igniter.Project.Module.create_module(domain, """ - use Ash.Domain + use Ash.Domain, + otp_app: :#{app_name} resources do end