4 use Catalyst qw[Test::Errors Test::Headers];
10 root => '/Users/chansen/src/MyApp/root',
15 #sub execute { return shift->NEXT::execute(@_); } # does not work, bug?
17 sub global_action : Private {
18 my ( $self, $c ) = @_;
19 $c->forward('TestApp::View::Dump::Request');
24 my $class = ref( $c->component( $_[0] ) ) || $_[0];
25 my $action = $c->actions->{reverse}->{"$_[1]"} || "$_[1]";
29 if ( $action =~ /->(\w+)$/ ) {
32 elsif ( $action =~ /\/(\w+)$/ ) {
36 my $executed = sprintf( "%s->%s", $class, $method )
37 if ( $class && $method );
39 $c->response->headers->push_header( 'X-Catalyst-Executed' => $executed );
40 return $c->SUPER::execute(@_);