Add comment for this mysterious behavior
This commit is contained in:
parent
25fab7da69
commit
20a911f9f7
|
@ -329,6 +329,8 @@ defp maybe_atomize(arg) when is_atom(arg), do: arg
|
||||||
defp maybe_atomize(arg) when is_binary(arg) do
|
defp maybe_atomize(arg) when is_binary(arg) do
|
||||||
chars = String.codepoints(arg)
|
chars = String.codepoints(arg)
|
||||||
|
|
||||||
|
# hack to make sure input like Pleroma.Mailer.Foo is formatted correctly
|
||||||
|
# for matching against values returned by Ecto
|
||||||
if "." in chars do
|
if "." in chars do
|
||||||
:"Elixir.#{arg}"
|
:"Elixir.#{arg}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue