This is the "pseudo function" I created in: https://github.com/dwyl/phoenix-ecto-encryption-example
defp prepare_fields(changeset, schema) do
User.__schema__(:fields)
# |> IO.inspect
|> Enum.each(fn field ->
IO.inspect field, label: field
User.__schema__(:type, field)
|> IO.inspect
end)
#
# IO.inspect changeset, lable: "changeset"
end
My plan is to expand it here.
This is the "pseudo function" I created in: https://github.com/dwyl/phoenix-ecto-encryption-example
My plan is to expand it here.