We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unless
1 parent 1fdbdd9 commit 0b614edCopy full SHA for 0b614ed
1 file changed
lib/phoenix_html_helpers/form_data.ex
@@ -4,7 +4,7 @@ defimpl Phoenix.HTML.FormData, for: [Plug.Conn, Atom] do
4
{errors, opts} = Keyword.pop(opts, :errors, [])
5
id = Keyword.get(opts, :id) || name
6
7
- unless is_binary(id) or is_nil(id) do
+ if not is_binary(id) do
8
raise ArgumentError, ":id option in form_for must be a binary/string, got: #{inspect(id)}"
9
end
10
0 commit comments