X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=ec6c0f32b12ea4c45250d19b97eab6e73ce5cafd;hp=af59ea25965697aa3cc3a565932f84201335323c;hb=6196207f8747abf0cb3ef03152102804927db557;hpb=a5d4355ad06c6bb91dd9d26ddfd52ace70be0a48 diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index af59ea2..ec6c0f3 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -250,7 +250,7 @@ sub finalize_output { } Forward processing to a private action or a method from a class. If you define a class without method it will default to process(). - $c->forward('foo'); + $c->forward('/foo'); $c->forward('index'); $c->forward(qw/MyApp::Model::CDBI::Foo do_stuff/); $c->forward('MyApp::View::TT'); @@ -266,7 +266,7 @@ sub forward { } my $caller = caller(0); my $namespace = '/'; - if ( $command =~ /^\/$/ ) { + if ( $command =~ /^\// ) { $command =~ /^(.*)\/(\w+)$/; $namespace = $1 || '/'; $command = $2;