Fixed forward to classes
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Dispatcher.pm
index ac641a9..4ceea4c 100644 (file)
@@ -120,8 +120,10 @@ sub forward {
 
     unless ($result) {
 
-        my $class  = ref($command) || ref( $c->component($command) );
-        my $method = shift         || 'process';
+        my $class = ref($command)
+          || ref( $c->component($command) )
+          || $c->component($command);
+        my $method = shift || 'process';
 
         unless ($class) {
             my $error =