Fixed situation where a detach($action) from a forward within auto was not breaking...
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Auto / Default.pm
CommitLineData
7f23827b 1package TestApp::Controller::Action::Auto::Default;
2
3use strict;
4use base 'TestApp::Controller::Action';
5
6sub begin : Private { }
7
8sub auto : Private {
9 my ( $self, $c ) = @_;
10 $c->stash->{auto_ran}++;
11 return 1;
12}
13
14sub default : Private {
15 my ( $self, $c ) = @_;
16 $c->res->body( sprintf 'default (auto: %d)', $c->stash->{auto_ran} );
17}
18
19sub end : Private { }
20
211;
22