From: Tomas Doran Date: Mon, 19 Oct 2009 17:02:59 +0000 (+0000) Subject: Remove warnings from duplicate action declerations X-Git-Tag: 5.80014~15^2~2^2~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=81e2964aaa2c62ad7a5eb3be4d1b436265e17038 Remove warnings from duplicate action declerations --- diff --git a/t/lib/TestApp/Controller/Action/Private.pm b/t/lib/TestApp/Controller/Action/Private.pm index d067223..9d384ed 100644 --- a/t/lib/TestApp/Controller/Action/Private.pm +++ b/t/lib/TestApp/Controller/Action/Private.pm @@ -8,27 +8,27 @@ sub default : Private { $c->res->output('access denied'); } -sub one : Private { +sub one : Private { my ( $self, $c ) = @_; $c->res->output('access allowed'); } -sub two : Private Relative { +sub two : Private { my ( $self, $c ) = @_; $c->res->output('access allowed'); } -sub three : Private Absolute { +sub three : Private { my ( $self, $c ) = @_; $c->res->output('access allowed'); } -sub four : Private Path('/action/private/four') { +sub four : Private { my ( $self, $c ) = @_; $c->res->output('access allowed'); } -sub five : Private Path('five') { +sub five : Private { my ( $self, $c ) = @_; $c->res->output('access allowed'); } diff --git a/t/lib/TestApp/Controller/Dump.pm b/t/lib/TestApp/Controller/Dump.pm index fcbdc5e..69431b3 100644 --- a/t/lib/TestApp/Controller/Dump.pm +++ b/t/lib/TestApp/Controller/Dump.pm @@ -3,7 +3,7 @@ package TestApp::Controller::Dump; use strict; use base 'Catalyst::Controller'; -sub default : Action Private { +sub default : Action { my ( $self, $c ) = @_; $c->forward('TestApp::View::Dump'); }