X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FAction.pm;h=83b4da3937bd7b700372d5d3c849bca2fb2eaccd;hp=1a23b16b7f978f3ccecab9dda06d5ea7985f9943;hb=b99ff5d87e80f13652bf374e2ce8f10c7156ac6e;hpb=2055d9ad6304f9db74cb05ec8ee0146ce319e8e4 diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index 1a23b16..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 { @@ -129,9 +119,9 @@ returns the sub name of this action. Provided by Moose -=head1 AUTHOR +=head1 AUTHORS -Matt S. Trout +Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT