X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController.pm;h=9ea7e7df09398cf5f0da9eb1ac9dad131c334ade;hb=531f1ab6f98c126f57075dbbca4884ac9728703c;hp=17b5c529caaa85774f406668398f627a4f5162b6;hpb=2f3812528068bc1d9f7840067f0c03d36cd47e6d;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index 17b5c52..9ea7e7d 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -7,7 +7,6 @@ use Moose; use Scalar::Util qw/blessed/; use Catalyst::Exception; use Catalyst::Utils; -use Class::Inspector; has path_prefix => ( @@ -191,10 +190,9 @@ sub register_actions { #this is still not correct for some reason. my $namespace = $self->action_namespace($c); my $meta = $self->meta; - my %methods = map{ $_->{code}->body => $_->{name} } - grep {$_->{class} ne 'Moose::Object'} #ignore Moose::Object methods - $meta->compute_all_applicable_methods; - + my %methods = map { $_->body => $_->name } + grep { $_->package_name ne 'Moose::Object' } #ignore Moose::Object methods + $meta->get_all_methods; # Advanced inheritance support for plugins and the like #moose todo: migrate to eliminate CDI compat