Skip to content

Commit

Permalink
apply patch RT78443
Browse files Browse the repository at this point in the history
  • Loading branch information
David Farrell committed Jan 26, 2017
1 parent b13ab2d commit 3bcd0e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/Data/FormValidator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -866,13 +866,13 @@ either use a named constraint, or use the hash ref method of defining a
constraint and include a C<name> key with a value set to the name of your
constraint. Here's an example:
my_zipcode_field => [
'zip',
{
constraint => '/^406/',
name => 'starts_with_406',
}
],
my_zipcode_field => [
'zip',
{
constraint_method => '/^406/',
name => 'starts_with_406',
}
],
You can use an array reference with a single constraint in it if you just want
to have the name of your failed constraint returned in the above fashion.
Expand Down

0 comments on commit 3bcd0e2

Please sign in to comment.