mobilizon.chapril.org-mobil.../lib/eventos_web/views/user_view.ex
Thomas Citharel 92d2045735 end
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-09 17:52:26 +01:00

12 lines
249 B
Elixir

defmodule EventosWeb.UserView do
use EventosWeb, :view
import Logger
def render("user.json", %{"user": user}) do
%{
email: user.email,
account: render_one(user.account, EventosWeb.AccountView, "account.json"),
}
end
end