rickharrison/validate.js — pull request #43 by jhnns (2012-12-20 13:50:53+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.