We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We store emails & phone numbers in arrays rather than in simple fields and use something like this to validate the array's attributes.
https://gist.github.com/ssimeonov/6519423
Which I'm attempting to use like so:
validates :phones, enum: { phony_plausible: true }
This works for other kinds of attributes but I can't get it to work with your gem.
I get the error
element 0 (7534721234) is an invalid number
However if I try 447534721234 it works fine.
447534721234
I also double check that it worked on a single column and it worked fine. Any idea how I could fix this?
Thanks,
The text was updated successfully, but these errors were encountered:
Guess it is an invalid number? :)
Sorry, something went wrong.
No branches or pull requests
We store emails & phone numbers in arrays rather than in simple fields and use something like this to validate the array's attributes.
https://gist.github.com/ssimeonov/6519423
Which I'm attempting to use like so:
validates :phones, enum: { phony_plausible: true }
This works for other kinds of attributes but I can't get it to work with your gem.
I get the error
element 0 (7534721234) is an invalid number
However if I try
447534721234
it works fine.I also double check that it worked on a single column and it worked fine. Any idea how I could fix this?
Thanks,
The text was updated successfully, but these errors were encountered: