From: Rafael Kitover Date: Sun, 1 Nov 2009 10:52:40 +0000 (+0000) Subject: fix relbuilder initialization (left over from pull) X-Git-Tag: 0.04999_13~23^2~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3fed44ca41ee2c2d8509ff044b36754d91f2e2ad;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix relbuilder initialization (left over from pull) --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index a8ccc74..70602ea 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -272,10 +272,6 @@ sub new { $self->{dump_directory} ||= $self->{temp_directory}; - $self->{relbuilder} = DBIx::Class::Schema::Loader::RelBuilder->new( - $self->schema, $self->inflect_plural, $self->inflect_singular - ) if !$self->{skip_relationships}; - $self->_check_back_compat; $self; @@ -409,6 +405,9 @@ sub rescan { sub _relbuilder { my ($self) = @_; + + return if $self->{skip_relationships}; + $self->{relbuilder} ||= DBIx::Class::Schema::Loader::RelBuilder->new( $self->schema, $self->inflect_plural, $self->inflect_singular );