Skip to content

Commit

Permalink
use helpers method for helpers that call other helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 14, 2014
1 parent 6c14c2a commit f2ae3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -45,7 +45,7 @@ sub register {

sub _csrf_field {
my $c = shift;
return _hidden_field($c, csrf_token => $c->csrf_token, @_);
return _hidden_field($c, csrf_token => $c->helpers->csrf_token, @_);
}

sub _form_for {
Expand Down Expand Up @@ -246,7 +246,7 @@ sub _text_area {
sub _validation {
my ($c, $name) = (shift, shift);
return _tag(@_) unless $c->validation->has_error($name);
return $c->tag_with_error(@_);
return $c->helpers->tag_with_error(@_);
}

1;
Expand Down

0 comments on commit f2ae3c3

Please sign in to comment.