Die when helper is not found
This commit is contained in:
@@ -108,6 +108,8 @@ sub AUTOLOAD {
|
||||
|
||||
$method = (split '::' => $method)[-1];
|
||||
|
||||
die qq/Unknown helper: $method/ unless $self->ctx->app->renderer->helper->{$method};
|
||||
|
||||
return $self->ctx->helper($method => @_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user