1 package DynamicAppDemo::ControllerBase;
3 use Moose::Util qw/find_meta/;
4 use namespace::clean -except => 'meta';
6 # You need attributes still for _DISPATCH and friends.
7 BEGIN { extends 'Catalyst::Controller' }
9 around get_action_methods => sub {
13 my $meta = find_meta($self);
15 # FIXME - fugly, and nasty
18 my $m = $meta->get_method($_);
19 # EPIC CHEAT to just smash the attribute definition :)
20 $m->meta->get_attribute('attributes')->set_value($m, ['Local']);
23 grep { ! /^(_|new|meta)/ }
24 $meta->get_method_list
32 __PACKAGE__->meta->make_immutable;