Remove hardcoded 'DynamicAppDemo' from reflector - ControllerBase still
Chris Andrews [Fri, 24 Apr 2009 08:05:36 +0000 (09:05 +0100)]
hardcoded.

lib/CatalystX/ModelToControllerReflector.pm

index 59004e3..4e82c59 100644 (file)
@@ -36,7 +36,7 @@ sub _reflect_model_to_controller {
     $meta->make_mutable; # Dirty, I should build the class, add the methods, then
                          # last of all make it a component
     $meta->remove_method('COMPONENT');
-    $meta->superclasses('DynamicAppDemo::ControllerBase');
+    $meta->superclasses($app . '::ControllerBase');
 
     my $methods = $model->meta->get_method_map;
     foreach my $method_name (keys %$methods) {