Fixed helper compatibility with Mojolicious 1.0

This commit is contained in:
Árpád Szász
2010-12-28 00:28:50 +02:00
parent c3e8c9ff73
commit d51eea608b

View File

@@ -120,9 +120,9 @@ sub AUTOLOAD {
$method = (split '::' => $method)[-1];
die qq/Unknown helper: $method/ unless $self->ctx->app->renderer->helper->{$method};
die qq/Unknown helper: $method/ unless $self->ctx->app->renderer->helpers->{$method};
return $self->ctx->helper($method => @_);
return $self->ctx->$method(@_);
}
1;