We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ce4b2 commit d01086dCopy full SHA for d01086d
usage-rules.md
@@ -64,11 +64,11 @@ end
64
65
Code interfaces automatically support options like `load:` and `query:` options for dynamic loading and filtering.
66
67
-**Using Scopes in LiveViews** - When using `Ash.Scope`, the scope will typically be assigned to `current_scope` in LiveViews and used like so:
+**Using Scopes in LiveViews** - When using `Ash.Scope`, the scope will typically be assigned to `scope` in LiveViews and used like so:
68
69
```elixir
70
# In your LiveView
71
-MyApp.Blog.create_post!("new post", scope: socket.assigns.current_scope)
+MyApp.Blog.create_post!("new post", scope: socket.assigns.scope)
72
```
73
74
Inside action hooks and callbacks, use the provided `context` parameter as your scope instead:
0 commit comments