Skip to content

Commit

Permalink
Merge pull request #34 from dwyl/source-atom
Browse files Browse the repository at this point in the history
gets schema source as atom
  • Loading branch information
nelsonic authored Dec 12, 2018
2 parents f7b412f + f2119ca commit 0fbc998
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 0fbc998

Please sign in to comment.