X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FComponentUI%2FController%2FTestModel%2FFoo.pm;h=04a56e805aad968199d9c2f2f54472fb42fd922d;hb=9bb62506e33250989de0bbd80bdd182d9425e5c6;hp=d636c6cc4973eb01619a4760d56b41ca75abaab8;hpb=987fc6e26baea18fa0c3c48fb1208c5c350a4bc1;p=catagits%2FReaction.git diff --git a/lib/ComponentUI/Controller/TestModel/Foo.pm b/lib/ComponentUI/Controller/TestModel/Foo.pm index d636c6c..04a56e8 100644 --- a/lib/ComponentUI/Controller/TestModel/Foo.pm +++ b/lib/ComponentUI/Controller/TestModel/Foo.pm @@ -56,16 +56,16 @@ for my $action (qw/view create update/){ override _build_action_viewport_map => sub { my $map = super(); $map->{list} = SearchableListViewContainer; - $map; + return $map; }; -sub _build_action_viewport_args { - my $self = shift; - my $args = $self->next::method(@_); - $args->{list}{action_prototypes}{delete_all}{label} = 'Delete All Records'; +override _build_action_viewport_args => sub { + my $args = super(); $args->{list}{spec_class} = SearchSpec; $args->{list}{action_class} = Update; return $args; -} +}; 1; + +__END__;