Skip to content

Commit

Permalink
actually use the form_for helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 2, 2015
1 parent cd7900e commit f010e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -36,7 +36,7 @@ sub register {

sub _button_to {
my ($c, $text) = (shift, shift);
return _form_for($c, @_, sub { _submit_button($c, $text) });
return $c->helpers->form_for(@_, sub { _submit_button($c, $text) });
}

sub _csrf_field {
Expand Down

0 comments on commit f010e09

Please sign in to comment.