X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FComponentised.pm;h=0b131000c2cc8db7696f1e632b0adca2822ed7c5;hb=cda04c3afd46989e1964a6c8a277fd7faa11b291;hp=a89f0e8fd462d954519f774ce7d871e47a4c69da;hpb=75a23b3e351f37ed420f182492d441ccbdca6569;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Componentised.pm b/lib/DBIx/Class/Componentised.pm index a89f0e8..0b13100 100644 --- a/lib/DBIx/Class/Componentised.pm +++ b/lib/DBIx/Class/Componentised.pm @@ -6,7 +6,7 @@ sub inject_base { my ($class, $target, @to_inject) = @_; { no strict 'refs'; - unshift(@{"${target}::ISA"}, grep { $target ne $_ } @to_inject); + unshift(@{"${target}::ISA"}, grep { $target ne $_ && !$target->isa($_)} @to_inject); } my $table = { Class::C3::_dump_MRO_table }; eval "package $target; import Class::C3;" unless exists $table->{$target};