X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChained%2FPassedArgs.pm;fp=t%2Flib%2FTestApp%2FController%2FAction%2FChained%2FPassedArgs.pm;h=064a55e4fbfd2d87384ac869c7d1163895d2b16e;hb=1c34f703cbd82cddceea95593001a579e1d5f646;hp=a84346f05e5d399ee5168290fc23e3043d8a6f61;hpb=d666af81cece84d49c57bb91949641937ad57091;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Chained/PassedArgs.pm b/t/lib/TestApp/Controller/Action/Chained/PassedArgs.pm index a84346f..064a55e 100644 --- a/t/lib/TestApp/Controller/Action/Chained/PassedArgs.pm +++ b/t/lib/TestApp/Controller/Action/Chained/PassedArgs.pm @@ -11,12 +11,12 @@ use base qw( Catalyst::Controller ); # as it should. # -sub first : PathPart('chained/passedargs/a') Chained('/') Captures(1) { +sub first : PathPart('chained/passedargs/a') Chained('/') CaptureArgs(1) { my ( $self, $c, $arg ) = @_; $c->stash->{ passed_args } = [ $arg ]; } -sub second : PathPart('b') Chained('first') Captures(1) { +sub second : PathPart('b') Chained('first') CaptureArgs(1) { my ( $self, $c, $arg ) = @_; push @{ $c->stash->{ passed_args } }, $arg; }