Skip to content

Commit

Permalink
Also move the method, sorry jberger
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Ramberg committed Aug 20, 2015
1 parent c6de6af commit 8b47577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -13,7 +13,6 @@ use Time::HiRes ();
has [qw(app tx)];
has match =>
sub { Mojolicious::Routes::Match->new(root => shift->app->routes) };
sub log { $_[0]->app->log }

# Reserved stash values
my %RESERVED = map { $_ => 1 } (
Expand Down Expand Up @@ -136,6 +135,8 @@ sub flash {

sub helpers { $_[0]->app->renderer->get_helper('')->($_[0]) }

sub log { $_[0]->app->log }

sub on {
my ($self, $name, $cb) = @_;
my $tx = $self->tx;
Expand Down

0 comments on commit 8b47577

Please sign in to comment.