mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: go back to old method of checking for resource
This commit is contained in:
parent
e502f51470
commit
f6ea11c10f
1 changed files with 4 additions and 2 deletions
|
@ -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])
|
||||
rescue
|
||||
_ ->
|
||||
false
|
||||
end
|
||||
|
||||
def is?(_module, _type), do: false
|
||||
|
|
Loading…
Reference in a new issue