aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-07-30 21:45:32 +0000
committerwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-07-30 21:45:32 +0000
commit2accb94e380d6e57bc2625ff5ad894f4bbbce72e (patch)
treeff0b6c3381140ecb8ba7d05a3af8ebd3db08f546
parent152ca3daf9af86c810a6b4052c96ea91e86d9d4c (diff)
downloadreaction-2accb94e380d6e57bc2625ff5ad894f4bbbce72e.tar.gz
reaction-2accb94e380d6e57bc2625ff5ad894f4bbbce72e.zip
patch from groditi
-rw-r--r--lib/Reaction/UI/ViewPort/Role/Actions.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Reaction/UI/ViewPort/Role/Actions.pm b/lib/Reaction/UI/ViewPort/Role/Actions.pm
index 368330b..ebd2d3c 100644
--- a/lib/Reaction/UI/ViewPort/Role/Actions.pm
+++ b/lib/Reaction/UI/ViewPort/Role/Actions.pm
@@ -18,11 +18,6 @@ has action_order => (
has action_filter => (
isa => 'CodeRef', is => 'ro',
- required => '1', lazy => '1',
- default => sub {
- my $self = shift;
- sub { return [keys %{ $self->action_prototypes }] }
- }
);
has action_prototypes => (
@@ -44,7 +39,8 @@ sub _build_computed_action_order {
($self->has_action_order ? $self->action_order : []),
[ keys %{ $self->action_prototypes } ]
);
- return $self->action_filter->($ordered, $self->model);
+ return $self->has_action_filter ?
+ $self->action_filter->($ordered, $self->model) : $ordered;
}
sub _build_actions {