[Catalyst-commits] r8324 - Catalyst-Runtime/5.80/trunk/lib/Catalyst
matthewt at dev.catalyst.perl.org
matthewt at dev.catalyst.perl.org
Mon Sep 1 16:32:52 BST 2008
Author: matthewt
Date: 2008-09-01 16:32:52 +0100 (Mon, 01 Sep 2008)
New Revision: 8324
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Action.pm
Log:
fixup Catalyst::Action
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Action.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Action.pm 2008-09-01 14:57:35 UTC (rev 8323)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Action.pm 2008-09-01 15:32:52 UTC (rev 8324)
@@ -49,17 +49,7 @@
sub dispatch { # Execute ourselves against a context
my ( $self, $c ) = @_;
- #Moose todo: grrrrrr. this is no good. i don't know enough about it to
- # debug it though. why can't we just call the accessor?
- #local $c->{namespace} = $self->namespace;
- #return $c->execute( $self->class, $self );
-
- #believed to be equivalent:
- my $orig = $c->namespace;
- $c->namespace($self->namespace);
- my $ret = $c->execute( $self->class, $self );
- $c->namespace($orig);
- return $ret;
+ return $c->execute( $self->class, $self );
}
sub execute {
More information about the Catalyst-commits
mailing list