Mesclar arquivos json na estrutura de renderização de phoenix
def render("event_all.json", %{event: event}) do
render("event.json", %{event: event})
|> Map.put_new(:activities, render_many(event.activities, Project.ActivityView, "activity.json", as: :activity))
end
Wrong Wombat