mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
fix macro usage
This commit is contained in:
parent
19c5ded879
commit
6a461ec927
3 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
defmodule Philomena.Search.Parser do
|
defmodule Philomena.Search.Parser do
|
||||||
defmacro defparser(name, opts) do
|
defmacro defparser(name, opts) do
|
||||||
field_transforms = Keyword.get(opts, :transforms, %{}) |> Macro.escape
|
field_transforms = Keyword.get(opts, :transforms, Macro.escape(%{}))
|
||||||
field_aliases = Keyword.get(opts, :aliases, %{}) |> Macro.escape
|
field_aliases = Keyword.get(opts, :aliases, Macro.escape(%{}))
|
||||||
default_field = Keyword.fetch!(opts, :default)
|
default_field = Keyword.fetch!(opts, :default)
|
||||||
|
|
||||||
quote location: :keep do
|
quote location: :keep do
|
||||||
|
|
3
lib/philomena_web/views/user_attribution_view.ex
Normal file
3
lib/philomena_web/views/user_attribution_view.ex
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
defmodule PhilomenaWeb.UserAttributionView do
|
||||||
|
use PhilomenaWeb, :view
|
||||||
|
end
|
Loading…
Reference in a new issue