Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
documentation tweaks
  • Loading branch information
kraih committed Sep 29, 2013
1 parent 5a1b821 commit 01e68d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.42 2013-09-28
4.42 2013-09-29
- Added EXPERIMENTAL form validation support.
- Added EXPERIMENTAL modules Mojolicious::Validator and
Mojolicious::Validator::Validation.
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Validator.pm
Expand Up @@ -105,8 +105,8 @@ L<Mojolicious::Validator> implements the following attributes.
my $checks = $validator->checks;
$validator = $validator->checks({size => sub {...}});
Registered checks, by default only C<equal_to>, C<in>, C<regex> and C<size>
are already defined.
Registered validation checks, by default only C<equal_to>, C<in>, C<regex> and
C<size> are already defined.
=head2 errors
Expand All @@ -125,7 +125,7 @@ implements the following new ones.
$validator = $validator->add_check(size => sub {...});
Register a new check.
Register a new validation check.
=head2 add_error
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Validator/Validation.pm
Expand Up @@ -220,8 +220,8 @@ Change validation C<topic> and make sure a value is present.
=head1 CHECKS
In addition to the methods above, you can also call checks provided by
L<Mojolicious::Validator> on L<Mojolicious::Validator::Validation> objects,
In addition to the methods above, you can also call validation checks provided
by L<Mojolicious::Validator> on L<Mojolicious::Validator::Validation> objects,
similar to C<check>.
$validation->required('foo')->size(2, 5)->regex(qr/^[A-Z]/);
Expand Down

0 comments on commit 01e68d2

Please sign in to comment.