X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=1c1760b457a7c0c6c7a24dc94fbd16c1d5a27381;hb=9bbc3a9d5246b99184ef29df079464e036719562;hp=d5d83752444fac14127140aebeb858d0028a8122;hpb=bbc249c902428383aca5a470c40ad4c646158ead;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index d5d8375..1c1760b 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -323,18 +323,15 @@ sub _invoke_as_component { my $possible_action = $c->application->action_for($method); return $possible_action if $possible_action; if( my $code = $c->application->can($method) ){ - return $self->_method_action_class->new( - { - name => $method, - code => $code, - reverse => "$component_or_class->$method", - class => $component_or_class, - namespace => Catalyst::Utils::class2prefix( - $component_or_class - ), - } - ); - } + return $self->_method_action_class->new( { + name => $method, + code => $code, + reverse => "$component_or_class->$method", + class => $component_or_class, + namespace => Catalyst::Utils::class2prefix( $component_or_class ), + } + ); + } } my $component = $self->_find_component($c, $component_or_class); my $component_class = blessed $component || return 0;