Skip to content

Commit

Permalink
more reliable log messages for helper collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 3, 2014
1 parent bbd74e8 commit 8747ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -141,7 +141,7 @@ sub helper {
my ($self, $name, $cb) = @_;
my $r = $self->renderer;
$self->log->debug(qq{Helper "$name" already exists, replacing.})
if exists $r->helpers->{$name};
if $r->get_helper($name);
$r->add_helper($name => $cb);
}

Expand Down

0 comments on commit 8747ad9

Please sign in to comment.