=head1 METHODS
-=over 4
+=head2 $self->match( $c, $path )
-=item $self->match( $c, $path )
+Check if default action matches, and set action if it does.
+Will be called last for each controller.
=cut
my $result = ( $c->get_actions( 'default', $c->req->path ) )[-1];
# Find default on namespace or super
- if ($result) {
+ if ($result && $result->match($c)) {
$c->action($result);
$c->namespace( $result->namespace );
$c->req->action('default');
return 0;
}
-=back
-
=head1 AUTHOR
Matt S Trout