apply claco's result_source_instance patch
David Kamholz [Sat, 8 Jul 2006 16:16:17 +0000 (16:16 +0000)]
lib/DBIx/Class/Schema.pm

index 40ba39f..c7214ca 100644 (file)
@@ -390,6 +390,8 @@ sub compose_namespace {
         $target_class => $source->result_class, ($base ? $base : ())
       );
       $source->result_class($target_class);
+      $target_class->result_source_instance($source)
+        if $target_class->can('result_source_instance');
     }
   }
   Class::C3->reinitialize();