intridea/grape — pull request #212 by adamgotterer (2012-07-26 04:16:07+00:00)
Title: Fix #211: Custom validator shouldn't be triggered when optional and not present

Updated validator to only run custom optional validation when the param is present. Re-wrote validations_spec to be a little more robust. Added section to documentation for custom validation.