Commit | Line | Data |
---|---|---|
e95b2b49 | 1 | package TestApp::Controller::Action::ConfigSmashArrayRefs; |
2 | ||
3 | use strict; | |
4 | use base 'Catalyst::Controller'; | |
5 | ||
6 | sub foo : Action {} | |
7 | ||
8 | # check configuration for an inherited action | |
9 | __PACKAGE__->config( | |
10 | action => { | |
11 | foo => { CustomAttr => [ 'Bar' ] } | |
12 | } | |
13 | ); | |
14 | ||
15 | sub _parse_CustomAttr_attr { | |
16 | my ($self, $app, $name, $value) = @_; | |
e95b2b49 | 17 | return CustomAttr => "PoopInYourShoes"; |
18 | } | |
19 | ||
20 | ||
21 | 1; | |
22 |