From f6ea11c10f083f0be36cda7503235a8530d29d80 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 27 Apr 2022 09:49:18 -0400 Subject: [PATCH] fix: go back to old method of checking for resource --- lib/ash/dsl/dsl.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ash/dsl/dsl.ex b/lib/ash/dsl/dsl.ex index a7814da2..d6e7dca8 100644 --- a/lib/ash/dsl/dsl.ex +++ b/lib/ash/dsl/dsl.ex @@ -253,8 +253,10 @@ defmodule Ash.Dsl do end def is?(module, type) when is_atom(module) do - function_exported?(module, :module_info, 1) && - type in List.wrap(module.module_info(:attributes)[:ash_is]) + type in List.wrap(module.module_info(:attributes)[:ash_is]) + rescue + _ -> + false end def is?(_module, _type), do: false