andela / pibbble

Dribbble Clone for Programmers
https://pibbble-staging.herokuapp.com/
13 stars 3 forks source link

[Fixes #112402959] Fixes bug on updating a user setting with empty parameters #308

Closed gngchrs closed 8 years ago

gngchrs commented 8 years ago

The update post route was only checking for non-empty parameters, so it was not updating them, even if that was the intention of the user. I have updated it to work with empty parameters, and added a validation rule on the username, since it is the one that is required, and must be unique.