Don't inject self into base :)
Matt S Trout [Sun, 7 Aug 2005 18:26:52 +0000 (18:26 +0000)]
lib/DBIx/Class/Schema.pm

index a88c52d..06d1416 100644 (file)
@@ -113,7 +113,7 @@ sub inject_base {
   my ($class, $target, @to_inject) = @_;
   {
     no strict 'refs';
-    unshift(@{"${target}::ISA"}, @to_inject);
+    unshift(@{"${target}::ISA"}, grep { $target ne $_ } @to_inject);
   }
 }