lazy_build => 1,
);
+sub BUILD {
+ my $self = shift;
+ require Class::MOP;
+
+ my @include_dirs = @{$self->include_dirs};
+ @INC = (@include_dirs, @INC);
+ Class::MOP::load_class($self->schema_class);
+}
+
sub _build_schema {
my ($self) = @_;
- require Class::MOP;
- {
- my @include_dirs = @{$self->include_dirs};
- local @INC = (@include_dirs, @INC);
- Class::MOP::load_class($self->schema_class);
- }
- $self->connect_info->[3]->{ignore_version} =1;
- return $self->schema_class->connect(@{$self->connect_info()} ); # , $self->connect_info->[3], { ignore_version => 1} );
+ $self->connect_info->[3]{ignore_version} = 1;
+ return $self->schema_class->connect(@{$self->connect_info});
}
=head2 include_dirs
# of what this is doing might be in order.
# The exceptions structure below is a hash keyed by the module
# name. Any * in a name is treated like a wildcard and will behave
-# as expected. Modules are matched by longest string first, so
+# as expected. Modules are matched by longest string first, so
# A::B::C will match even if there is A::B*
# The value for each is a hash, which contains one or more
/]
},
+ 'DBIx::Class::Admin' => {
+ ignore => [ qw/
+ BUILD
+ /]
+ },
+
'DBIx::Class::Storage::DBI::Replicated*' => {
ignore => [ qw/
connect_call_do_sql