projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
55e2d74
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema.pm
b/lib/DBIx/Class/Schema.pm
index
a88c52d
..
06d1416
100644
(file)
--- 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);
}
}