From f2119ca6548b60cde62958ae255ae0977621b731 Mon Sep 17 00:00:00 2001 From: Danielwhyte Date: Wed, 12 Dec 2018 11:18:32 +0000 Subject: [PATCH] gets schema source as atom --- lib/templates/custom/custom.html.eex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/templates/custom/custom.html.eex b/lib/templates/custom/custom.html.eex index e9e5478..a31d11d 100644 --- a/lib/templates/custom/custom.html.eex +++ b/lib/templates/custom/custom.html.eex @@ -3,7 +3,7 @@ <%= if html = Map.get(element, :html) do %> <%= html %> <% else %> - <%= if assoc_schema = one_of([String.to_existing_atom(element.schema_name), element.schema.__schema__(:source)], @assoc_list) do %> + <%= if assoc_schema = one_of([String.to_existing_atom(element.schema_name), String.to_atom(element.schema.__schema__(:source))], @assoc_list) do %> <%= inputs_for f, assoc_schema, fn p -> %> <%= render "field_inputs.html", element: element, f: p, changeset: @changeset %> <% end %> diff --git a/mix.exs b/mix.exs index 81112b9..d09c521 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Autoform.MixProject do def project do [ app: :autoform, - version: "0.6.0", + version: "0.6.1", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod,