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 nil? #2

Closed
gamov opened this issue Jun 4, 2013 · 1 comment
Closed

Allow nil? #2

gamov opened this issue Jun 4, 2013 · 1 comment

Comments

@gamov
Copy link

gamov commented Jun 4, 2013

  • sorry: eyes wide shut *

I like this little gem.
I tried to use it but I would like to allow a null value (with means it hasn't yet or shouldn't been set). The problem is that enum_accessor triggers an 'is not included in the list' validation error.
Solved my problem by using the option: validation_options: {allow_nil: true}
which IS documented...

@gamov gamov closed this as completed Jun 4, 2013
@kenn
Copy link
Owner

kenn commented Jun 4, 2013

Glad you've found a solution. :)

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

No branches or pull requests

2 participants