1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Pipe all the things

This commit is contained in:
Daniel Barber 2018-02-23 11:08:46 -05:00
parent c0422693c0
commit 08786460d0
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -20,7 +20,10 @@ defmodule ChessWeb.GameController do
def new(conn, _params) do
changeset = Game.changeset(%Game{})
opponents = get_opponents(current_user(conn))
opponents =
conn
|> current_user()
|> get_opponents()
render(conn, "new.html", changeset: changeset, opponents: opponents)
end