I'd like Dave H s actions sub to be added to core Maypole.pm. One of
maypole's strengths I think is that
It returns a list ref of "Exported" actions for a model class. Here
it is. I named it
model_actions in my driver :
sub model_actions
{
my ($r, $model_class) = @_;
$model_class ||= $r->model_class;
use Class::Inspector;
my @actions;
for my $method (@{Class::Inspector->methods($model_class)}) {
push @actions, $method if $model_class->is_public($method);
}
return [EMAIL PROTECTED];
}
Could someone please tell me if this will be put into Maypole and
under what name/synopsis so I can make my code compliant with future
release while I'm thinking about it :)
Thanks
--
pjs
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel