Permalink
Browse files

Adding brackets to match rest of style

I noticed that all other method calls in this controller
user brackets. Adding brackets to match this style
in the render call of the show action.
  • Loading branch information...
leighhalliday committed Sep 28, 2015
1 parent 8034827 commit 5becb9bf8cbd2fa9b7cb08ca03c56e8b2e503b82
Showing with 1 addition and 1 deletion.
  1. +1 −1 priv/templates/phoenix.gen.json/controller.ex
@@ -28,7 +28,7 @@ defmodule <%= module %>Controller do
def show(conn, %{"id" => id}) do
<%= singular %> = Repo.get!(<%= alias %>, id)
render conn, "show.json", <%= singular %>: <%= singular %>
render(conn, "show.json", <%= singular %>: <%= singular %>)
end
def update(conn, %{"id" => id, <%= inspect singular %> => <%= singular %>_params}) do

0 comments on commit 5becb9b

Please sign in to comment.