From: Matt S Trout Date: Sun, 7 Aug 2005 18:26:52 +0000 (+0000) Subject: Don't inject self into base :) X-Git-Tag: v0.03001~57 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4a4efd19ad92b7ff50847922c038995940cadbd5;p=dbsrgits%2FDBIx-Class.git Don't inject self into base :) --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index a88c52d..06d1416 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -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); } }