X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=34faf94e9cc82ec5520398d57bc5cb4011a3529d;hp=2eb0bc1b7593e08ff6c4cfa2c46c1031e746d7e8;hb=88e5a8b0c4d28e46b8ba6b6b9567063e57af9063;hpb=eb67e0f6a0ce8d92ad1c528f2c367f1923683ece diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 2eb0bc1..34faf94 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -317,12 +317,12 @@ sub recurse_match { !$best_action || @parts < @{$best_action->{parts}} || ( - !@parts && - defined($args_attr) && + !@parts && + defined($args_attr) && ( $args_count eq "0" && ( - ($c->config->{use_chained_args_0_special_case}||0) || + ($c->config->{use_chained_args_0_special_case}||0) || ( exists($best_action->{args_count}) && defined($best_action->{args_count}) ? ($best_action->{args_count} ne 0) : 1 @@ -702,7 +702,7 @@ controller. For Example: # in MyApp::Controller::Foo sub bar : Chained CaptureArgs(1) { ... } - # in MyApp::Controller::Foo::Moo + # in MyApp::Controller::Foo::Bar sub bar : ChainedParent Args(1) { ... } This builds a chain like C.