Skip to content

Commit

Permalink
gets schema source as atom
Browse files Browse the repository at this point in the history
  • Loading branch information
Danwhy committed Dec 12, 2018
1 parent f7b412f commit f2119ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/templates/custom/custom.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2119ca

Please sign in to comment.