From: Matt S Trout Date: Mon, 1 Sep 2008 15:32:52 +0000 (+0000) Subject: fixup Catalyst::Action X-Git-Tag: 5.8000_03~78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=049f82e24c3016d03bf8a866449f98b511810b95;hp=ba3c3e8604014602dee49df10bacaecdfce180a0 fixup Catalyst::Action --- diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index c3abb5b..83b4da3 100644 --- a/lib/Catalyst/Action.pm +++ b/lib/Catalyst/Action.pm @@ -49,17 +49,7 @@ no warnings 'recursion'; 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 {