[Catalyst-commits] r8328 -
Catalyst-Runtime/5.70/trunk/lib/Catalyst/DispatchType
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Tue Sep 2 12:48:44 BST 2008
Author: rafl
Date: 2008-09-02 12:48:44 +0100 (Tue, 02 Sep 2008)
New Revision: 8328
Modified:
Catalyst-Runtime/5.70/trunk/lib/Catalyst/DispatchType/Chained.pm
Log:
Document :ChainedParent.
Modified: Catalyst-Runtime/5.70/trunk/lib/Catalyst/DispatchType/Chained.pm
===================================================================
--- Catalyst-Runtime/5.70/trunk/lib/Catalyst/DispatchType/Chained.pm 2008-09-02 11:48:31 UTC (rev 8327)
+++ Catalyst-Runtime/5.70/trunk/lib/Catalyst/DispatchType/Chained.pm 2008-09-02 11:48:44 UTC (rev 8328)
@@ -503,6 +503,19 @@
C</foo/bar>. That action chains directly to C</>, so the C</bar/*/baz/*>
chain comes out as the end product.
+=item ChainedParent
+
+Chains an action to another action with the same name in the parent
+controller. For Example:
+
+ # in MyApp::Controller::Foo
+ sub bar : Chained CaptureArgs(1) { ... }
+
+ # in MyApp::Controller::Foo::Moo
+ sub bar : ChainedParent Args(1) { ... }
+
+This builds a chain like C</bar/*/bar/*>.
+
=item CaptureArgs
Must be specified for every part of the chain that is not an
More information about the Catalyst-commits
mailing list