mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: don't incur compile time dependency for resources used as types
This commit is contained in:
parent
43362c7656
commit
e62d8e4a13
1 changed files with 5 additions and 1 deletions
|
@ -328,7 +328,11 @@ defmodule Ash.Type do
|
|||
end
|
||||
|
||||
def ecto_type(type) do
|
||||
type.ecto_type()
|
||||
if Ash.Resource.Info.resource?(type) do
|
||||
Module.concat(type, EctoType)
|
||||
else
|
||||
type.ecto_type()
|
||||
end
|
||||
end
|
||||
|
||||
def ash_type_option(type) do
|
||||
|
|
Loading…
Reference in a new issue