X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController.pm;h=a080f8438cb3a007c496c3a5c88e38a23a1f2659;hb=56e19078d7169c3c969468f8730d48e12271adb6;hp=e79d79fbbe07e40ca93b1ff80a14bf81f3fa1f3f;hpb=a58af53dae9faa8a3f2ace190d607e17a6afa5d1;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index e79d79f..a080f84 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -181,6 +181,9 @@ sub register_actions { #this is still not correct for some reason. my $namespace = $self->action_namespace($c); my $meta = find_meta($self); + confess("Metaclass for " . ref($meta) ." for " . $meta->name + . " cannot support register_actions.") + unless $meta->can('get_all_methods_with_attributes'); my @methods = $meta->get_all_methods_with_attributes; foreach my $method (@methods) {