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=0002ef7e230e67ddd47bd5158486738a03fe105d;hp=9b2ea9fed4f3e759faa9c0e7cf534094c5cb6c11;hb=855ed93153e2b0c0e88d9bb8f23822c914393048;hpb=11bd4e3eaa29685c44318041381621e79c4a5f44 diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index 9b2ea9f..0002ef7 100644 --- a/lib/Catalyst/Action.pm +++ b/lib/Catalyst/Action.pm @@ -13,6 +13,9 @@ use overload ( # Codulate to encapsulated action coderef '&{}' => sub { shift->{code} }, + # Make general $stuff still work + fallback => 1, + ); =head1 NAME @@ -27,30 +30,27 @@ See L. =head1 METHODS -=over 4 - -=item attributes +=head2 attributes -=item class +=head2 class -=item code +=head2 code -=item execute +=head2 execute =cut sub execute { # Execute ourselves against a context my ( $self, $c ) = @_; + local $c->namespace = $self->namespace; return $c->execute( $self->class, $self ); } -=item namespace - -=item reverse +=head2 namespace -=item name +=head2 reverse -=back +=head2 name =head1 AUTHOR