[Catalyst-commits] r13712 - in Catalyst-Runtime/5.80/trunk: . lib

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Tue Nov 23 17:05:36 GMT 2010


Author: t0m
Date: 2010-11-23 17:05:36 +0000 (Tue, 23 Nov 2010)
New Revision: 13712

Modified:
   Catalyst-Runtime/5.80/trunk/Changes
   Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Log:
Clarify end action after forward / detach

Modified: Catalyst-Runtime/5.80/trunk/Changes
===================================================================
--- Catalyst-Runtime/5.80/trunk/Changes	2010-11-22 20:03:57 UTC (rev 13711)
+++ Catalyst-Runtime/5.80/trunk/Changes	2010-11-23 17:05:36 UTC (rev 13712)
@@ -1,5 +1,9 @@
 # This file documents the revision history for Perl extension Catalyst.
 
+ Documentation:
+  - Clarify that when forwarding or detaching, the end action associated
+    with the original dispatched action will be run afterwards (fallen)
+
 5.80029 2010-10-03 16:39:00
 
  New features:

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2010-11-22 20:03:57 UTC (rev 13711)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2010-11-23 17:05:36 UTC (rev 13712)
@@ -370,6 +370,8 @@
 
 and access it from the stash.
 
+Keep in mind that the C<end> method used is that of the caller action. So a C<$c-E<gt>detach> inside a forwarded action would run the C<end> method from the original action requested.
+
 =cut
 
 sub forward { my $c = shift; no warnings 'recursion'; $c->dispatcher->forward( $c, @_ ) }




More information about the Catalyst-commits mailing list