Shitting all over the application config in the model generator was somewhat unfriend...
[catagits/CatalystX-DynamicComponent.git] / lib / CatalystX / DynamicComponent / ModelsFromConfig.pm
index dffefa3..489546c 100644 (file)
@@ -16,7 +16,7 @@ with 'CatalystX::DynamicComponent' => {
         COMPONENT => sub {
             my ($component_class_name, $app, $args) = @_;
 
-            my $class = delete $args->{class};
+            my $class = $args->{class};
             Class::MOP::load_class($class);
            
             $class->new($args);