4 package TestAppDoubleAutoBug;
13 our $VERSION = '0.01';
15 __PACKAGE__->config( name => 'TestAppDoubleAutoBug', root => '/some/dir' );
17 __PACKAGE__->log(TestLogger->new);
23 my $class = ref( $c->component( $_[0] ) ) || $_[0];
24 my $action = $_[1]->reverse();
28 if ( $action =~ /->(\w+)$/ ) {
31 elsif ( $action =~ /\/(\w+)$/ ) {
34 elsif ( $action =~ /^(\w+)$/ ) {
38 if ( $class && $method && $method !~ /^_/ ) {
39 my $executed = sprintf( "%s->%s", $class, $method );
40 my @executed = $c->response->headers->header('X-Catalyst-Executed');
41 push @executed, $executed;
42 $c->response->headers->header(
43 'X-Catalyst-Executed' => join ', ',
48 return $c->SUPER::execute(@_);