Skip to content

Commit

Permalink
docs: use strict_loads false in upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed May 15, 2024
1 parent 2681684 commit 35bbd3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/topics/development/upgrading-to-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,14 @@ end

#### Keep the old behavior

Each calculation can still opt into the old behavior by adding the callback `strict_loads/0` and returning `true`.
Each calculation can still opt into the old behavior by adding the callback `strict_loads/0` and returning `false`.

```elixir
def load(_, _, _) do
[:relationship]
end

def strict_loads, do: true
def strict_loads, do: false
```

---
Expand Down

0 comments on commit 35bbd3f

Please sign in to comment.