Skip to content

Commit b3da249

Browse files
authored
Improvement: get_by_id typo fix in usage rules (#2230)
1 parent 6eefeea commit b3da249

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/topics/resources/code-interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This is similar to using `Repo.get/2` and `Repo.preload/2` directly outside of c
8181
```elixir
8282
# In your domain
8383
resource DashboardGroup do
84-
define :get_by_id, action: :read, get_by: [:id]
84+
define :get_dashboard_group_by_id, action: :read, get_by: [:id]
8585
end
8686

8787
# In your LiveView or Controller

usage-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ group = MyApp.Resource |> Ash.get!(id) |> Ash.load!(rel: [:nested])
7070

7171
# GOOD - use code interface with get_by
7272
resource DashboardGroup do
73-
define :get_by_id, action: :read, get_by: [:id]
73+
define :get_dashboard_group_by_id, action: :read, get_by: [:id]
7474
end
7575

7676
# Then call:

0 commit comments

Comments
 (0)