Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski committed Dec 12, 2023
1 parent fe21305 commit 2eb2bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/repo/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ defmodule Ecto.Repo.Schema do
defp writable_field?(nil, _field), do: true

defp writable_field?(schema, field) do
not is_nil(schema.__schema__(:writable_type, field))
schema.__schema__(:writable_type, field) != nil
end

defp field_source!(nil, field) do
Expand Down

0 comments on commit 2eb2bd2

Please sign in to comment.