Call config as a method rather than poking the hash directly. Less gross
[catagits/Catalyst-Devel.git] / 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