fix macro usage

This commit is contained in:
byte[] 2019-10-03 20:53:30 -04:00
parent 19c5ded879
commit 6a461ec927
3 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,7 @@
defmodule Philomena.Search.Parser do
defmacro defparser(name, opts) do
field_transforms = Keyword.get(opts, :transforms, %{}) |> Macro.escape
field_aliases = Keyword.get(opts, :aliases, %{}) |> Macro.escape
field_transforms = Keyword.get(opts, :transforms, Macro.escape(%{}))
field_aliases = Keyword.get(opts, :aliases, Macro.escape(%{}))
default_field = Keyword.fetch!(opts, :default)
quote location: :keep do

View file

@ -0,0 +1,3 @@
defmodule PhilomenaWeb.UserAttributionView do
use PhilomenaWeb, :view
end