remove infinite loop in Isn.Base

This commit is contained in:
Martin Frost 2015-05-05 23:18:07 +02:00
parent 41c9c85cd6
commit 56d8031c25
1 changed files with 5 additions and 4 deletions

View File

@ -1,14 +1,15 @@
defmodule Isn.Base do
defmacro __using__(type) do
quote bind_quoted: [type: type] do
defmacro __using__(isn_type) do
quote bind_quoted: [isn_type: isn_type] do
# @behaviour Ecto.Type
#
@isn_type isn_type
@moduledoc """
Definition for the #{@type} module.
Definition for the #{@isn_type} module.
"""
def type,
do: type
do: @isn_type
defdelegate blank?, to: Ecto.Type