[Catalyst-commits] r9102 - in Catalyst-Runtime/5.70/trunk: . lib
marcus at dev.catalyst.perl.org
marcus at dev.catalyst.perl.org
Sun Jan 18 21:05:27 GMT 2009
Author: marcus
Date: 2009-01-18 21:05:27 +0000 (Sun, 18 Jan 2009)
New Revision: 9102
Modified:
Catalyst-Runtime/5.70/trunk/Changes
Catalyst-Runtime/5.70/trunk/lib/Catalyst.pm
Log:
Backport go doc bit
Modified: Catalyst-Runtime/5.70/trunk/Changes
===================================================================
--- Catalyst-Runtime/5.70/trunk/Changes 2009-01-17 22:34:48 UTC (rev 9101)
+++ Catalyst-Runtime/5.70/trunk/Changes 2009-01-18 21:05:27 UTC (rev 9102)
@@ -1,5 +1,6 @@
# This file documents the revision history for Perl extension Catalyst.
+ - backport go doc patch
- added ru/ua translations to error page
- backport stripping build_requires
Modified: Catalyst-Runtime/5.70/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.70/trunk/lib/Catalyst.pm 2009-01-17 22:34:48 UTC (rev 9101)
+++ Catalyst-Runtime/5.70/trunk/lib/Catalyst.pm 2009-01-18 21:05:27 UTC (rev 9102)
@@ -336,6 +336,13 @@
calling the new C<$action> / C<$class-E<gt>$method>. This means that C<begin>,
C<auto> and the method you go to are called, just like a new request.
+In addition both C<< $c->action >> and C<< $c->namespace >> are localized.
+This means, for example, that $c->action methods such as C<name>, C<class> and
+C<reverse> return information for the visited action when they are invoked
+within the visited action. This is different from the behavior of C<forward>
+which continues to use the $c->action object from the caller action even when
+invoked from the callee.
+
C<$c-E<gt>stash> is kept unchanged.
In effect, C<visit> allows you to "wrap" another action, just as it
More information about the Catalyst-commits
mailing list