mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 21:13:10 +12:00
docs: fix typo in code snippet for change actions doc (#1032)
This commit is contained in:
parent
8bcbfc5b17
commit
3c06d04124
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ defmodule MyApp.Changes.Slugify do
|
|||
|
||||
@impl true
|
||||
def change(changeset, opts, _context) do
|
||||
case Ash.Changeset.fetch_change(changeset, opts[:attribute)) do
|
||||
case Ash.Changeset.fetch_change(changeset, opts[:attribute]) do
|
||||
{:ok, new_value} ->
|
||||
slug = String.replace(new_value, ~r/\s+/, "-")
|
||||
Ash.Changeset.force_change_attribute(changeset, opts[:attribute], slug)
|
||||
|
|
Loading…
Reference in a new issue