diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-12-15 21:06:43 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-12-15 21:06:43 +0000 |
commit | e3fab62bb7f18307d7285b9974afcae28181ce06 (patch) | |
tree | 759781ac40d74dd3ba261b818912b01aa4321119 | |
parent | 0461aeb00710623e26a7e5f02e3b7ec9f5484231 (diff) | |
parent | 9bb62506e33250989de0bbd80bdd182d9425e5c6 (diff) | |
download | reaction-e3fab62bb7f18307d7285b9974afcae28181ce06.tar.gz reaction-e3fab62bb7f18307d7285b9974afcae28181ce06.zip |
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Foo.pm | 12 |
1 files changed, 6 insertions, 6 deletions
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__; |