[Catalyst-commits] r11142 - in Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib: . TestAppPathBug TestAppPathBug/Controller

yousef at dev.catalyst.perl.org yousef at dev.catalyst.perl.org
Sun Aug 16 12:16:13 GMT 2009


Author: yousef
Date: 2009-08-16 12:16:12 +0000 (Sun, 16 Aug 2009)
New Revision: 11142

Added:
   Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug/
   Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug/Controller/
   Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug/Controller/Root.pm
Modified:
   Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug.pm
Log:
Moved foo() from the app class to a root controller


Added: Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug/Controller/Root.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug/Controller/Root.pm	                        (rev 0)
+++ Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug/Controller/Root.pm	2009-08-16 12:16:12 UTC (rev 11142)
@@ -0,0 +1,12 @@
+package TestAppPathBug::Controller::Root;
+
+use base 'Catalyst::Controller';
+
+__PACKAGE__->config->{namespace} = '';
+
+sub foo : Path {
+    my ( $self, $c ) = @_;
+    $c->res->body( 'This is the foo method.' );
+}
+
+1;

Modified: Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug.pm	2009-08-16 09:51:40 UTC (rev 11141)
+++ Catalyst-Runtime/5.80/branches/deprecate_appclass_actions/t/lib/TestAppPathBug.pm	2009-08-16 12:16:12 UTC (rev 11142)
@@ -11,9 +11,4 @@
 
 __PACKAGE__->setup;
 
-sub foo : Path {
-    my ( $self, $c ) = @_;
-    $c->res->body( 'This is the foo method.' );
-}
-
 1;




More information about the Catalyst-commits mailing list