Skip to content

Commit 77e498f

Browse files
authored
Merge pull request #1529 from gmazzamuto/fix-documentation
Fix some errors in the documentation
2 parents 11e5378 + 68e880b commit 77e498f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

guides/live_resource/on_mount-hook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use Backpex.LiveResource,
1818
on_mount: {__MODULE__, :my_hook}
1919

2020
def on_mount(:my_hook, _params, _session, socket) do
21-
attach_hook(socket, :handle_event_callback, :handle_event, &handle_event/3)
21+
socket = Phoenix.LiveView.attach_hook(socket, :handle_event_callback, :handle_event, &handle_event/3)
2222

2323
{:cont, socket}
2424
end

lib/backpex/item_actions/delete.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Backpex.ItemActions.Delete do
22
@moduledoc """
3-
Inline item action to redirect to show view.
3+
Inline item action to delete the item.
44
"""
55

66
use BackpexWeb, :item_action

lib/backpex/item_actions/edit.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Backpex.ItemActions.Edit do
22
@moduledoc """
3-
Inline item action to redirect to show view.
3+
Inline item action to redirect to edit view.
44
"""
55

66
use BackpexWeb, :item_action

0 commit comments

Comments
 (0)