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

Don't remove parameters with empty values. #47

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Don't remove parameters with empty values. #47

merged 1 commit into from
Jun 11, 2015

Conversation

adamcrown
Copy link
Contributor

Sometimes things need to be set to nil or an empty string.

In our case we're using Weary to update a central user database. Somebody who loses a job for instance has to have their title and department changed to nil or an empty string. But these params were being removed.

I can't think of any reason empty params should be removed and all the tests passed without the code that removes them so it seems like there's no reason to have that functionality.

Sometimes things need to be set to nil or an empty string.
@pboling
Copy link

pboling commented Jul 8, 2014

👍

mwunsch added a commit that referenced this pull request Jun 11, 2015
Don't remove parameters with empty values.
@mwunsch mwunsch merged commit e36ce4f into mwunsch:master Jun 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants