You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: usage-rules.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Understanding Ash
4
4
5
-
Ash is an opinionated, composable framework for building applications in Elixir. It provides a declarative approach to modeling your domain with resources at the center. Read documentation *before* attempting to use it's features. Do not assume that you have prior knowledge of the framework or its conventions.
5
+
Ash is an opinionated, composable framework for building applications in Elixir. It provides a declarative approach to modeling your domain with resources at the center. Read documentation *before* attempting to use its features. Do not assume that you have prior knowledge of the framework or its conventions.
6
6
7
7
## Code Structure & Organization
8
8
@@ -479,14 +479,13 @@ end
479
479
change {MyApp.Changes.ProcessOrder, []}
480
480
```
481
481
482
-
## Anonymous Functions
482
+
## Custom Modules vs. Anonymous Functions
483
483
484
484
Prefer to put code in its own module and refer to that in changes, preparations, validations etc.
@@ -521,7 +520,7 @@ Relationships describe connections between resources and are a core component of
521
520
522
521
#### Relationship Types
523
522
524
-
- For Polymorphic relationships, you can model them using `Ash.Type.Union`; see the “Polymorphic Relationships” guide for more information.
523
+
- For Polymorphic relationships, you can model them using `Ash.Type.Union`; see the [Polymorphic Relationships guide](https://hexdocs.pm/ash/polymorphic-relationships.html) for more information.
525
524
526
525
```elixir
527
526
relationships do
@@ -597,7 +596,7 @@ Ash.load!(post, :author)
597
596
598
597
Prefer to use the `strict?` option when loading to only load necessary fields on related data.
0 commit comments