Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 22, 2025
1 parent 21f72f3 commit 48c0e16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion priv/templates/phx.gen.live/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web

@impl true
def mount(%{"id" => id}, _session, socket) do
{:ok, socket
{:ok,
socket
|> assign(:page_title, "Show <%= schema.human_singular %>")
|> assign(:<%= schema.singular %>, <%= inspect context.alias %>.get_<%= schema.singular %>!(id))}
end
Expand Down

0 comments on commit 48c0e16

Please sign in to comment.