Skip to content

Commit

Permalink
Update filepath-with-id.md
Browse files Browse the repository at this point in the history
change_user should also be updated?
  • Loading branch information
zwippie authored and achempion committed Nov 13, 2022
1 parent 499cf38 commit 75f8710
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/examples/filepath-with-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ defmodule Accounts do
|> Repo.update()
end

def change_user(%User{} = user, attrs \\ %{}) do
user
|> User.changeset(attrs)
|> User.avatar_changeset(attrs)
end

# ...
end
```

0 comments on commit 75f8710

Please sign in to comment.