[dfv] chaining constraints
Status: Inactive
Brought to you by:
markjugg
From: Louis-David M. <vin...@ap...> - 2010-05-11 05:33:12
|
Hi, I have the following constraints: constraint_methods => { cruiser__email=>[ email(), { constraint_method=>sub { ... new school constraint ... } }, ] } How can I defer the second check until the first constraint validates? In other words if email() doesn't validate it is pointless to check the other constraint and _also_ report that failure to the user. Thanks, |