X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=c3ae86537478cf49e13f536476878975543653cb;hp=ab305eca9ddc4c7d105cb1dce88a855a904fcbfa;hb=8f5912113dcd6b0dcd152cfa593fae67cf991ccc;hpb=32d4bba8cb8276572093428eef50bf0bda59aa3d diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index ab305ec..c3ae865 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -145,6 +145,7 @@ sub forward { my $method = shift || 'process'; + require $class; if ( my $code = $class->can($method) ) { $c->actions->{reverse}->{"$code"} = "$class->$method"; $results = [ [ [ $class, $code ] ] ];