first part of fix for attributes and roles mess. metclass coompat bug still lurks
[catagits/Reaction.git] / lib / ComponentUI / Controller / TestModel / Baz.pm
1 package ComponentUI::Controller::TestModel::Baz;
2
3 use Reaction::Class;
4 BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; }
5
6 use ComponentUI::UI::ViewPort::Baz::ListView::Member;
7
8 __PACKAGE__->config(
9   model_name => 'TestModel',
10   collection_name => 'Baz',
11   action => {
12     base => { Chained => '/base', PathPart => 'testmodel/baz' },
13     list => {
14       ViewPort => {
15         enable_order_by => [qw/id name bool_field description/],
16         member_class => 'ComponentUI::UI::ViewPort::Baz::ListView::Member',
17         Member => {
18           Field => {
19             description => {
20               max_length => 40,
21               layout => 'value/string',
22             },
23           },
24         },
25       },
26     },
27   },
28 );
29
30 1;