Skip to content

Commit d01086d

Browse files
committed
chore: update scope name
1 parent 66ce4b2 commit d01086d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usage-rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ end
6464

6565
Code interfaces automatically support options like `load:` and `query:` options for dynamic loading and filtering.
6666

67-
**Using Scopes in LiveViews** - When using `Ash.Scope`, the scope will typically be assigned to `current_scope` in LiveViews and used like so:
67+
**Using Scopes in LiveViews** - When using `Ash.Scope`, the scope will typically be assigned to `scope` in LiveViews and used like so:
6868

6969
```elixir
7070
# In your LiveView
71-
MyApp.Blog.create_post!("new post", scope: socket.assigns.current_scope)
71+
MyApp.Blog.create_post!("new post", scope: socket.assigns.scope)
7272
```
7373

7474
Inside action hooks and callbacks, use the provided `context` parameter as your scope instead:

0 commit comments

Comments
 (0)