{"push_id":864719215,"size":1,"distinct_size":1,"ref":"refs/heads/ps-improve-association-changesets","head":"ba1f01c00de577f15552feb541b451674567b8bb","before":"6b2b7568475b4014ddbf33b0635712ebc1cd5801","commits":[{"sha":"ba1f01c00de577f15552feb541b451674567b8bb","author":{"email":"64ce89c033d140b3d039616d6af3f82c5b229835@gmail.com","name":"Paul Smith"},"message":"Allow anonymous functions for casting associations\n\nThis allows user's to pass a custom function for casting associations.\n\n    cast(post, params, ~w(), [{:author, &my_custom_changeset/2}])\n\nAlso clarifies documentation on what it expects the value to be. When I\nread \"key value\" I thought it wanted a Map or Keyword list. This commit\nchanges it to state that it expects a 2 item tuple and adds an example\nfor clarity.\n\nThis can be helpful if your changesets are defined somewhere other than\nthe model itself. It is also helpful even if it is defined on the model\nbecause it makes it very clear which function is used\n\n    cast(post, params, ~w(), [{:author, &Author.optional_changeset/2}])","distinct":true,"url":"https://api.github.com/repos/paulcsmith/ecto/commits/ba1f01c00de577f15552feb541b451674567b8bb"}]}