Can't overwrite validate.validators.numericality.options.message #145
Comments
Here's a fiddle with the P.O.C https://jsfiddle.net/nitriques/4d9p3ju9/3/ As if you remove all other properties except message in the constraint, overwriting works. But if you add |
The fiddle is using the edge version |
This is definitely a bug, nice catch. |
Using the edge version you can now set |
Hum my fiddle still does not works... I am missing something ? |
Released in 0.11.0 |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if I set a value to
validate.validators.numericality.options.message
, you can't customize the message when validating, usingmessage
ornotValid
. I would expect to still be able to provide custom messages event if I set a default one. This problem looks specific to the numericality validator, as I do not have this problem with the 'presence' validator.I've tried to set the message in both the constraints and option object, without any luck
This is using the
validate.single
function.The text was updated successfully, but these errors were encountered: