1 package TestApp::Controller::Action::Chained::Auto;
5 use base qw( Catalyst::Controller );
8 # Provided for sub-auto tests. This just always returns true.
10 sub auto : Private { 1 }
13 # Simple chains with auto actions returning 1 and 0
15 sub foo : Chained PathPart('chained/autochain1') CaptureArgs(1) { }
16 sub bar : Chained PathPart('chained/autochain2') CaptureArgs(1) { }
19 # Detaching out of an auto action.
21 sub dt1 : Chained PathPart('chained/auto_detach') CaptureArgs(1) { }
24 # Forwarding out of an auto action.
26 sub fw1 : Chained PathPart('chained/auto_forward') CaptureArgs(1) { }
29 # Target for dispatch and forward tests.