X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=83e7efb16c0b75d93174e4cd43cd8914571bcf4a;hb=36a0ef0d95111a5a610f4295690dbd823e42d648;hp=5ef4639ce8911c7bb25a48de20d98475b14f579b;hpb=7833fdfca73ff8a03769523ec85c2343a3994360;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 5ef4639..83e7efb 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -337,6 +337,13 @@ sub forward { $command = _prefix( $caller, $command ); $command = "\!$command"; } + elsif ( $command =~ /^\!(.*)$/ ) { + my $try = $1; + my $caller = caller(0); + my $prefix = _class2prefix($caller); + $try = "!$prefix/$command"; + $command = $try if $c->actions->{plain}->{$try}; + } my ( $class, $code ); if ( my $action = $c->action($command) ) { ( $class, $code ) = @{ $action->[0] };