projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add test for norewrite
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
Base.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/Base.pm
b/lib/DBIx/Class/Schema/Loader/Base.pm
index
5d146ec
..
878d028
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/
lib/DBIx/Class/Schema/Loader/Base.pm
@@
-423,6
+423,9
@@
sub _load_tables {
sub _reload_classes {
my ($self, @tables) = @_;
+ # so that we don't repeat custom sections
+ @INC = grep $_ ne $self->dump_directory, @INC;
+
$self->_dump_to_dir(map { $self->classes->{$_} } @tables);
unshift @INC, $self->dump_directory;