Call config as a method rather than poking the hash directly. Less gross
Tomas Doran [Mon, 5 Oct 2009 22:59:03 +0000 (22:59 +0000)]
share/lib/MyApp/Controller/Root.pm.tt

index f3cc272..bb717a3 100644 (file)
@@ -8,7 +8,7 @@ BEGIN { extends 'Catalyst::Controller' }
 # Sets the actions in this controller to be registered with no prefix
 # so they function identically to actions created in MyApp.pm
 #
-__PACKAGE__->config->{namespace} = '';
+__PACKAGE__->config(namespace => '');
 
 =head1 NAME