Skip to content

Instantly share code, notes, and snippets.

@hopewise
Created January 22, 2018 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hopewise/b37df5c8a884babf9f9e5760cdedaa11 to your computer and use it in GitHub Desktop.
Save hopewise/b37df5c8a884babf9f9e5760cdedaa11 to your computer and use it in GitHub Desktop.
Piping (|>) to second argument in Elixir
insert_result = result
|> FieldsFitter.fit_driver_fields
|> (&Schools.Driver.changeset(%Schools.Driver{}, &1)).()
|> repo.insert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment