Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow custom messages on numericality options object for each validation #35
In the same way that I am able to custom validation messages to the length validator options object - for example: (wrongLength, tooLong, tooShort) - I want to add custom messages on the options object to the of numericality validator.
validate.validators.numericality.notGreaterThan sets a default value. I need a custom message which is different for the same validations (numericality, greater than X) but with a completely different message.
Include changes to numericality-spec.js
Totally up for providing examples and text for validate.js documentation if desired.