4 package TestAppDoubleAutoBug;
12 our $VERSION = '0.01';
14 __PACKAGE__->config( name => 'TestAppDoubleAutoBug', root => '/some/dir' );
20 my $class = ref( $c->component( $_[0] ) ) || $_[0];
21 my $action = $_[1]->reverse();
25 if ( $action =~ /->(\w+)$/ ) {
28 elsif ( $action =~ /\/(\w+)$/ ) {
31 elsif ( $action =~ /^(\w+)$/ ) {
35 if ( $class && $method && $method !~ /^_/ ) {
36 my $executed = sprintf( "%s->%s", $class, $method );
37 my @executed = $c->response->headers->header('X-Catalyst-Executed');
38 push @executed, $executed;
39 $c->response->headers->header(
40 'X-Catalyst-Executed' => join ', ',
45 return $c->SUPER::execute(@_);
51 my ( $self, $c ) = @_;
52 ++$c->stash->{auto_count};
56 sub default : Private {
57 my ( $self, $c ) = @_;
58 $c->res->body( sprintf 'default, auto=%d', $c->stash->{auto_count} );