Skip to content

Commit

Permalink
fixed bug where render_later method was not hidden from the router
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 9, 2013
1 parent 7e3fbea commit cb5822b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@

4.14 2013-06-10
- Improved url_for performance slightly.
- Fixed bug where render_later method was not hidden from the router.

4.13 2013-06-09
- Replaced ua method in Mojolicious::Controller with a helper.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -70,7 +70,7 @@ sub new {

# Hide controller attributes/methods and "handler"
$r->hide(qw(AUTOLOAD DESTROY app cookie finish flash handler on param));
$r->hide(qw(redirect_to render render_exception render_maybe));
$r->hide(qw(redirect_to render render_exception render_later render_maybe));
$r->hide(qw(render_not_found render_static rendered req res respond_to));
$r->hide(qw(send session signed_cookie stash tx url_for write write_chunk));

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/app.t
Expand Up @@ -81,6 +81,7 @@ ok $t->app->routes->is_hidden('param'), 'is hidden';
ok $t->app->routes->is_hidden('redirect_to'), 'is hidden';
ok $t->app->routes->is_hidden('render'), 'is hidden';
ok $t->app->routes->is_hidden('render_exception'), 'is hidden';
ok $t->app->routes->is_hidden('render_later'), 'is hidden';
ok $t->app->routes->is_hidden('render_maybe'), 'is hidden';
ok $t->app->routes->is_hidden('render_not_found'), 'is hidden';
ok $t->app->routes->is_hidden('render_static'), 'is hidden';
Expand Down

0 comments on commit cb5822b

Please sign in to comment.