Commit | Line | Data |
e28a6876 |
1 | package TestApp::Controller::Action::Chained::ParentChain; |
2 | use warnings; |
3 | use strict; |
4 | |
5 | use base qw/ Catalyst::Controller /; |
6 | |
7 | # |
8 | # Chains to the action /action/chained/parentchain in the |
9 | # Action::Chained controller. |
10 | # |
11 | sub child :Chained('.') :Args(1) { } |
12 | |
13 | # Should be at /chained/rootdef/*/chained_rel/*/* |
14 | sub chained_rel :Chained('../one') Args(2) { |
15 | } |
16 | |
17 | # Should chain to loose in parent namespace - i.e. at /chained/loose/*/loose/*/* |
18 | sub loose : ChainedParent Args(2) { |
19 | } |
20 | |
21 | # Should be at /chained/cross/*/up_down/* |
22 | sub up_down : Chained('../bar/cross1') Args(1) { |
23 | } |
24 | |
25 | 1; |