Closed InteNs closed 6 years ago
Unfortunately you can not use the attributes DSL with attributes that match the callbacks.
In this case I would just define the attributes callback instead, something like:
def attributes(post, _), do: Map.take(post, [:title, :location, :content])
I'm having a really weird issue with my
PostView
:other views with the exact same code don't have this problem.
edit: the
location
attribute is the problem, is this a bug or intended?gives this at compile:
i'm using
{:ja_serializer, "~> 0.13"}