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 custom messages on numericality options object for each validation #35

Merged
merged 1 commit into from Oct 10, 2015

Conversation

Projects
None yet
2 participants
@fastestOrange

fastestOrange commented Mar 4, 2015

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.

@ansman ansman changed the title from Allow custom messages custom messages on numericality options object for... to Allow custom messages on numericality options object for each validation Jul 9, 2015

@ansman

This comment has been minimized.

Show comment
Hide comment
@ansman

ansman Jul 9, 2015

Owner

I'm sorry I haven't responded to this yet, it must be slipped between my fingers. I'll review this ASAP, it sounds like a reasonable request.

Owner

ansman commented Jul 9, 2015

I'm sorry I haven't responded to this yet, it must be slipped between my fingers. I'll review this ASAP, it sounds like a reasonable request.

@ansman ansman added this to the Next milestone Jul 9, 2015

@ansman ansman added the enhancement label Jul 9, 2015

ansman added a commit that referenced this pull request Oct 10, 2015

Merge pull request #35 from roczinskisquared/master
Allow custom messages on numericality options object for each validation

@ansman ansman merged commit acfadc6 into ansman:master Oct 10, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

ansman added a commit that referenced this pull request Oct 10, 2015

@ansman

This comment has been minimized.

Show comment
Hide comment
@ansman

ansman Oct 10, 2015

Owner

Released in 0.9.0 and again, sorry for the extremely long waiting time.

Owner

ansman commented Oct 10, 2015

Released in 0.9.0 and again, sorry for the extremely long waiting time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment