-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop fields that has nil values (#148)
* drop nil values * add test for drop nil values * make the intention a bit clearer by changing `Enum.filter` to Enum.reject * move drop_nil_values/1 to be used in params_for and params_with_assocs. rename v to value * add test for params_with_assocs/2 for params without nil values * rename drop_nil_values/1 to drop_fields_with_nil_values/1 and improve test naming
- Loading branch information
1 parent
5724796
commit 7f43711
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters