Skip to content

Commit

Permalink
more diverse examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 6, 2015
1 parent 3fb9c6f commit 234bb7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -417,8 +417,9 @@ Router results for the current request, defaults to a
L<Mojolicious::Routes::Match> object.
# Introspect
my $controller = $c->match->endpoint->pattern->defaults->{controller};
my $action = $c->match->stack->[-1]{action};
my $name = $c->match->endpoint->name;
my $foo = $c->match->endpoint->pattern->defaults->{foo};
my $action = $c->match->stack->[-1]{action};
=head2 tx
Expand Down

0 comments on commit 234bb7a

Please sign in to comment.