From 0f89e38df301bec913ed40eac22c7f6a6ba38353 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Fri, 2 Oct 2015 20:43:59 +0200 Subject: [PATCH] Properly indent Isn module documentation --- lib/isn.ex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/isn.ex b/lib/isn.ex index e701e5a..d36b171 100644 --- a/lib/isn.ex +++ b/lib/isn.ex @@ -62,18 +62,18 @@ for module <- ~w(ISBN ISMN ISSN ISBN13 ISMN13 ISSN13 UPC EAN13) do @behaviour Ecto.Type @moduledoc """ - Definition for the #{module_name} module. + Definition for the Isn.#{module} module. How to use this in an Ecto.Model - defmodule MyApp.Book do - use MyApp.Web, :model + defmodule MyApp.Book do + use MyApp.Web, :model - schema "books" do - field :#{module_name}, Isn.#{ecto_type} - # other fields - end - end + schema "books" do + field :#{ecto_type}, Isn.#{module} + # other fields + end + end """ def type, do: unquote(ecto_type)