[Catalyst-commits] r10699 - Catalyst-Runtime/5.80/trunk/lib/Catalyst

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Sun Jun 28 14:58:19 GMT 2009


Author: rafl
Date: 2009-06-28 14:58:16 +0000 (Sun, 28 Jun 2009)
New Revision: 10699

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst/Controller.pm
Log:
Pass $c along to path_prefix in _parse_PathPrefix_attr.

This prevents things from blowing up if the controller instance doesn't know
about its action namespace already, when the attribute value is being parsed.

Closes RT#42816. Courtesy of Jason Kohles.

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Controller.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Controller.pm	2009-06-28 13:31:18 UTC (rev 10698)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Controller.pm	2009-06-28 14:58:16 UTC (rev 10699)
@@ -384,8 +384,8 @@
 }
 
 sub _parse_PathPrefix_attr {
-    my $self = shift;
-    return PathPart => $self->path_prefix;
+    my ( $self, $c ) = @_;
+    return PathPart => $self->path_prefix($c);
 }
 
 sub _parse_ActionClass_attr {




More information about the Catalyst-commits mailing list