no dispatching through MyApp anymore
André Walker [Thu, 11 Aug 2011 14:17:36 +0000 (11:17 -0300)]
lib/Catalyst/Dispatcher.pm

index f63c1a7..02c81e0 100644 (file)
@@ -308,9 +308,6 @@ sub _invoke_as_path {
 sub _find_component {
     my ( $self, $c, $component ) = @_;
 
-    # fugly, why doesn't ->component('MyApp') work?
-    return $c if ($component eq blessed($c));
-
     return blessed($component)
         ? $component
         : $c->component($component);