added test case + patch for inherited action configuration
Eden Cardim [Tue, 30 Jun 2009 15:13:45 +0000 (15:13 +0000)]
lib/Catalyst/Controller.pm
t/lib/TestApp/Controller/Action/Inheritance.pm

index 548b4a1..aca0b1c 100644 (file)
@@ -189,7 +189,7 @@ sub get_action_methods {
     push(
         @methods,
         map {
-            $meta->get_method($_)
+            $meta->find_method_by_name($_)
               || confess( 'Action "' 
                   . $_
                   . '" is not available from controller '
index 6eae935..9d9fa45 100644 (file)
@@ -70,5 +70,17 @@ sub end : Private {
     my ( $self, $c ) = @_;
 }
 
+package TestApp::Controller::Action::Inheritance::B;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+# check configuration for an inherited action
+__PACKAGE__->config(
+    action => {
+        begin => {}
+    }
+);
+
 1;