isa => 'ArrayRef'
);
+has action_filter => (
+ isa => 'CodeRef', is => 'ro',
+ required => '1', lazy => '1',
+ default => sub {
+ sub { return [keys %{ shift->action_prototypes }] }
+ }
+);
+
has action_prototypes => (
is => 'ro',
isa => 'HashRef',
($self->has_action_order ? $self->action_order : []),
[ keys %{ $self->action_prototypes } ]
);
- return $ordered ;
+ return $self->action_filter->($ordered, $self->model);
}
sub _build_actions {