Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Simplify Preparing Data? #1

Open
nelsonic opened this issue May 16, 2018 · 1 comment
Open

How to Simplify Preparing Data? #1

nelsonic opened this issue May 16, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@nelsonic
Copy link
Member

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.

@nelsonic nelsonic added the enhancement New feature or request label May 16, 2018
@nelsonic
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant