sub is_applicable {
my $self = shift;
my $config = $self->config;
- my %ok = map {$_ => 1} @{$config->{display_tables}};
+ $config->{ok_tables} = {map {$_ => 1} @{$config->{display_tables}}};
warn "We don't have that table ($self->{table})"
- unless $ok{$self->{table}};
- return DECLINED() unless exists $ok{$self->{table}};
+ unless $config->{ok_tables}{$self->{table}};
+ return DECLINED() unless exists $config->{ok_tables}{$self->{table}};
# Does the action method exist?
# XXX We should set the method class to the class for the table