Don't clobber the "config" method - it's pretty important. This is
[catagits/CatalystX-DynamicComponent.git] / lib / CatalystX / DynamicComponent.pm
index ea12cb8..af0e9ee 100644 (file)
@@ -114,8 +114,8 @@ role {
             }
         }
 
-       # stash the config of this generated class away
-       $meta->add_method('config', sub { return $app->config->{$name} }); 
+        # stash the config of this generated class away
+        $meta->add_method('dynamic_model_config', sub { return $app->config->{$name} }); 
 
         $meta->make_immutable;