projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1f85126
)
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
patch
|
blob
|
blame
|
history
t/lib/TestApp/Controller/Action/Inheritance.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Controller.pm
b/lib/Catalyst/Controller.pm
index
548b4a1
..
aca0b1c
100644
(file)
--- a/
lib/Catalyst/Controller.pm
+++ b/
lib/Catalyst/Controller.pm
@@
-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 '
diff --git
a/t/lib/TestApp/Controller/Action/Inheritance.pm
b/t/lib/TestApp/Controller/Action/Inheritance.pm
index
6eae935
..
9d9fa45
100644
(file)
--- a/
t/lib/TestApp/Controller/Action/Inheritance.pm
+++ b/
t/lib/TestApp/Controller/Action/Inheritance.pm
@@
-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;