remove infinite loop in Isn.Base
This commit is contained in:
parent
41c9c85cd6
commit
56d8031c25
|
|
@ -1,14 +1,15 @@
|
||||||
defmodule Isn.Base do
|
defmodule Isn.Base do
|
||||||
defmacro __using__(type) do
|
defmacro __using__(isn_type) do
|
||||||
quote bind_quoted: [type: type] do
|
quote bind_quoted: [isn_type: isn_type] do
|
||||||
# @behaviour Ecto.Type
|
# @behaviour Ecto.Type
|
||||||
#
|
#
|
||||||
|
@isn_type isn_type
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
Definition for the #{@type} module.
|
Definition for the #{@isn_type} module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def type,
|
def type,
|
||||||
do: type
|
do: @isn_type
|
||||||
|
|
||||||
defdelegate blank?, to: Ecto.Type
|
defdelegate blank?, to: Ecto.Type
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue