Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hide render_maybe
  • Loading branch information
kraih committed May 14, 2013
1 parent 67c71b8 commit ca9bfbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Mojolicious.pm
Expand Up @@ -70,9 +70,10 @@ 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_not_found));
$r->hide(qw(render_static rendered req res respond_to send session));
$r->hide(qw(signed_cookie stash tx ua url_for write write_chunk));
$r->hide(qw(redirect_to render render_exception render_maybe));
$r->hide(qw(render_not_found render_static rendered req res respond_to));
$r->hide(qw(send session signed_cookie stash tx ua url_for write));
$r->hide('write_chunk');

# Check if we have a log directory
my $mode = $self->mode;
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_maybe'), 'is hidden';
ok $t->app->routes->is_hidden('render_not_found'), 'is hidden';
ok $t->app->routes->is_hidden('render_static'), 'is hidden';
ok $t->app->routes->is_hidden('rendered'), 'is hidden';
Expand Down

0 comments on commit ca9bfbf

Please sign in to comment.