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