state update
Sebastian Riedel [Thu, 24 Mar 2005 02:04:54 +0000 (02:04 +0000)]
lib/Catalyst/Engine.pm

index 57c4054..41dc691 100644 (file)
@@ -447,13 +447,13 @@ sub handler {
             my $results = $c->find_action( $action, $namespace );
             if ( @{$results} ) {
                 for my $begin ( @{ $c->find_action( '!begin', $namespace ) } ) {
-                    $c->process( @{ $begin->[0] } );
+                    $c->state( $c->process( @{ $begin->[0] } ) );
                 }
                 for my $result ( @{ $c->find_action( $action, $namespace ) } ) {
-                    $c->process( @{ $result->[0] } );
+                    $c->state( $c->process( @{ $result->[0] } ) );
                 }
                 for my $end ( @{ $c->find_action( '!end', $namespace ) } ) {
-                    $c->process( @{ $end->[0] } );
+                    $c->state( $c->process( @{ $end->[0] } ) );
                 }
             }
             else {