Skip to content

Commit

Permalink
docs: fix typo in polymorphic docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 25, 2024
1 parent 8c1cec6 commit 4598abe
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions documentation/how-to/polymorphic-relationships.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,15 @@ Below we define an `Ash.Type.NewType`. This allows defining a new type that is t
```elixir
defmodule AccountImplementation do
use Ash.Type.NewType, subtype_of: :union, constraints: [
checking: [
type: :struct,
constraints: [instance_of: CheckingAccount]
],
savings: [
type: :struct,
constraints: [instance_of: SavingsAccount]
types: [
checking: [
type: :struct,
constraints: [instance_of: CheckingAccount]
],
savings: [
type: :struct,
constraints: [instance_of: SavingsAccount]
]
]
]
end
Expand Down

0 comments on commit 4598abe

Please sign in to comment.