You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: