Closed johngeorgewright closed 8 years ago
Not right now.
https://github.com/maritz/nohm/blob/master/lib/validation.js#L177
Changing that line to something that uses apply should fix it.
If you wanna try that, a pull request with unit tests would be greatly appreciated. Otherwise it will take me at least a couple of days until I get around to doing it.
I could use this feature too. I think I'll take a shot at it this weekend.
I've been using this branch: https://github.com/maritz/nohm/pull/95 Although the tests don't seem to passing on Travis, they work for me.
This was fixed in February, forgot to close it.
We have a situation where one of the properties needs to be validated against another property. This (simplified) example can give an idea as to what I'm trying to achieve:
Is there any way I can access the current instance from within a validator?