Skip to content

Commit

Permalink
Hide log from routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Ramberg committed Aug 21, 2015
1 parent 8b47577 commit 8282e31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes.pm
Expand Up @@ -11,7 +11,7 @@ use Scalar::Util 'weaken';
has base_classes => sub { [qw(Mojolicious::Controller Mojo)] };
has cache => sub { Mojo::Cache->new };
has [qw(conditions shortcuts)] => sub { {} };
has hidden => sub { [qw(attr has new tap)] };
has hidden => sub { [qw(attr has new tap log)] };
has namespaces => sub { [] };

sub add_condition { $_[0]->conditions->{$_[1]} = $_[2] and return $_[0] }
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/app.t
Expand Up @@ -110,6 +110,7 @@ ok $t->app->routes->is_hidden('finish'), 'is hidden';
ok $t->app->routes->is_hidden('flash'), 'is hidden';
ok $t->app->routes->is_hidden('has'), 'is hidden';
ok $t->app->routes->is_hidden('helpers'), 'is hidden';
ok $t->app->routes->is_hidden('log'), 'is hidden';
ok $t->app->routes->is_hidden('match'), 'is hidden';
ok $t->app->routes->is_hidden('new'), 'is hidden';
ok $t->app->routes->is_hidden('on'), 'is hidden';
Expand Down

0 comments on commit 8282e31

Please sign in to comment.