Skip to content

Instantly share code, notes, and snippets.

@Harrisonl
Created August 11, 2019 15:57
Show Gist options
  • Save Harrisonl/bcd8ecc8df4bb609c3753a443dd62ec5 to your computer and use it in GitHub Desktop.
Save Harrisonl/bcd8ecc8df4bb609c3753a443dd62ec5 to your computer and use it in GitHub Desktop.
case Enum.all?(["name", "email", "password", "organisation_id"], fn(field) -> user_params[field] end) do
true -> #....
false -> :error
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment