Clarify end action after forward / detach
Tomas Doran [Tue, 23 Nov 2010 17:05:36 +0000 (17:05 +0000)]
Changes
lib/Catalyst.pm

diff --git a/Changes b/Changes
index 85528dc..0496c4b 100644 (file)
--- a/Changes
+++ b/Changes
@@ -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:
index ea011de..35c6ca9 100644 (file)
@@ -370,6 +370,8 @@ or stash it like so:
 
 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, @_ ) }