diff --git a/documentation/examples/filepath-with-id.md b/documentation/examples/filepath-with-id.md index a10bed9..6ae8bcd 100644 --- a/documentation/examples/filepath-with-id.md +++ b/documentation/examples/filepath-with-id.md @@ -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 ```