Skip to content

Commit

Permalink
another validation check example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 26, 2014
1 parent 175bacc commit e2b7f1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.71 2014-12-25
5.71 2014-12-26
- Updated jQuery to version 2.1.3.

5.70 2014-12-18
Expand Down
6 changes: 6 additions & 0 deletions lib/Mojolicious.pm
Expand Up @@ -522,6 +522,12 @@ L<Mojolicious::Types> object.
Validate parameters, defaults to a L<Mojolicious::Validator> object.
# Add validation check
$app->validator->add_check(foo => sub {
my ($validation, $name, $value) = @_;
return $value ne 'foo';
});
=head1 METHODS
L<Mojolicious> inherits all methods from L<Mojo> and implements the following
Expand Down

0 comments on commit e2b7f1c

Please sign in to comment.