rickharrison/validate.js — pull request #44 by jhnns (2012-12-20 13:56:25+00:00)
Title: Add "rule" to error-object

Sometimes it's desirable to know which rule failed (and not just the error message). In this case I think it's good to add a `rule` property which contains the method name that failed.

Arbitrary rules are passed without the `callback_` prefix.