begin in Action.pm must return true
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action.pm
CommitLineData
dd4e6fd2 1package TestApp::Controller::Action;
2
3use strict;
4use base 'Catalyst::Base';
5
6sub begin : Private {
7 my ( $self, $c ) = @_;
8 $c->res->header( 'X-Test-Class' => ref($self) );
9 $c->response->content_type('text/plain; charset=utf-8');
2680d54f 10
11 return 1;
dd4e6fd2 12}
13
14sub default : Private {
15 my ( $self, $c ) = @_;
16 $c->res->output("Error - TestApp::Controller::Action\n");
17}
18
191;