From: Tomas Doran Date: Tue, 23 Nov 2010 17:05:36 +0000 (+0000) Subject: Clarify end action after forward / detach X-Git-Tag: 5.80030~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=fa325a7dd41a46365e4c706e6704069658c50785 Clarify end action after forward / detach --- diff --git a/Changes b/Changes index 85528dc..0496c4b 100644 --- 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: diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index ea011de..35c6ca9 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -370,6 +370,8 @@ or stash it like so: and access it from the stash. +Keep in mind that the C method used is that of the caller action. So a C<$c-Edetach> inside a forwarded action would run the C method from the original action requested. + =cut sub forward { my $c = shift; no warnings 'recursion'; $c->dispatcher->forward( $c, @_ ) }