_parent => $self ? not only is it dumb, but it is not used anywhere. gone
groditi [Fri, 29 Feb 2008 00:07:06 +0000 (00:07 +0000)]
lib/Reaction/InterfaceModel/Reflector/DBIC.pm

index 08b2288..df59556 100644 (file)
@@ -332,11 +332,7 @@ class DBIC, which {
        domain_model   => $dm_name,
        orig_attr_name => $source,
        default        => sub {
-         my $self = $_[0];
-         return $collection->new(
-           _source_resultset => $self->$dm_name->resultset($source),
-           _parent => $self,
-         );
+         $collection->new(_source_resultset => $_[0]->$dm_name->resultset($source));
        },
       );