Skip to content

allow empty value setting#51

Merged
ledermann merged 1 commit intoledermann:masterfrom
Kriechi:allow-empty-value
Apr 24, 2014
Merged

allow empty value setting#51
ledermann merged 1 commit intoledermann:masterfrom
Kriechi:allow-empty-value

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