Skip to content

Commit 10885ba

Browse files
committed
docs: finish example
1 parent 962f9f6 commit 10885ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ash/scope.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ defprotocol Ash.Scope do
1111
1212
```elixir
1313
scope = %MyApp.Scope{current_user: user, current_tenant: tenant, locale: "en"}
14+
1415
# instead of
1516
MyDomain.create_thing(actor: current_user, tenant: tenant)
1617
1718
# you can do
18-
MyDomain.create_thing(scope: socket.assigns.scope)
19+
MyDomain.create_thing(scope: scope)
1920
```
2021
2122
## Setup

0 commit comments

Comments
 (0)