Properly indent Isn module documentation

This commit is contained in:
Martin Frost 2015-10-02 20:43:59 +02:00
parent 489a461b34
commit 0f89e38df3
1 changed files with 8 additions and 8 deletions

View File

@ -62,7 +62,7 @@ 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
@ -70,7 +70,7 @@ for module <- ~w(ISBN ISMN ISSN ISBN13 ISMN13 ISSN13 UPC EAN13) do
use MyApp.Web, :model
schema "books" do
field :#{module_name}, Isn.#{ecto_type}
field :#{ecto_type}, Isn.#{module}
# other fields
end
end