Fixed typo
Sebastian Riedel [Tue, 15 Nov 2005 18:59:32 +0000 (18:59 +0000)]
lib/Catalyst/Base.pm
lib/Catalyst/Request.pm

index 1b672f0..9aa4dbf 100644 (file)
@@ -43,7 +43,10 @@ sub _AUTO : Private {
 
 sub _ACTION : Private {
     my ( $self, $c ) = @_;
-    if ( ref $c->action && $c->action->isa('Catalyst::Action') ) {
+    if (   ref $c->action
+        && $c->action->isa('Catalyst::Action')
+        && $c->req->action )
+    {
         $c->action->execute($c);
     }
     return !@{ $c->error };
index c0cc729..b8caa11 100644 (file)
@@ -6,7 +6,7 @@ use base 'Class::Accessor::Fast';
 use IO::Socket qw[AF_INET inet_aton];
 
 __PACKAGE__->mk_accessors(
-    qw/address arguments cookies headers match method
+    qw/action address arguments cookies headers match method
       protocol query_parameters secure snippets uri user/
 );
 
@@ -81,10 +81,6 @@ thus hiding the details of the particular engine implementation.
 
 Returns the requested action as a L<Catalyst::Action> object.
 
-=cut
-
-sub action { shift->{_context}->action(@_) }
-
 =item $req->address
 
 Returns the IP address of the client.