Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 20, 2012
1 parent fb87ecb commit dba7301
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Mojolicious/Routes.pm
Expand Up @@ -334,7 +334,10 @@ C<attr>, C<has>, C<new> and C<tap>.
my $namespaces = $r->namespaces;
$r = $r->namespaces(['Foo::Bar::Controller']);
Namespaces used by C<dispatch> to search for controllers.
Namespaces to load controllers from.
# Add another namespace to load controllers from
push @{$r->namespaces}, 'MyApp::Controller';
=head2 C<shortcuts>
Expand Down

0 comments on commit dba7301

Please sign in to comment.