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

allow empty value setting #51

Merged
merged 1 commit into from
Apr 24, 2014
Merged

Conversation

Kriechi
Copy link

@Kriechi Kriechi commented Apr 23, 2014

Prior to this PR, there was no way to delete every setting, because then the value attribute would be blank, which was forbidden with a validation.

This PR removes the validates_presence_of for value.
Now it is possible to delete all settings by setting all to nil.
I added a few tests and updated one existing test to reflect the new behaviour.

closes #39
(which addresses the same problem, but without proper tests)

ledermann added a commit that referenced this pull request Apr 24, 2014
@ledermann ledermann merged commit 98e4841 into ledermann:master Apr 24, 2014
@ledermann
Copy link
Owner

Thank you!

@Kriechi Kriechi deleted the allow-empty-value branch April 24, 2014 09:08
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.

2 participants