From: Matt S Trout Date: Wed, 2 Nov 2005 16:24:00 +0000 (+0000) Subject: Changed use to require in Relationship/Base to avoid import X-Git-Tag: v0.05005~188 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcafefc824f3bf50f256213efb123723c552c331;p=dbsrgits%2FDBIx-Class.git Changed use to require in Relationship/Base to avoid import --- diff --git a/Changes b/Changes index d48fe37..6cc9f91 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for DBIx::Class +0.03003 + - Changed use to require in Relationship/Base to avoid import + 0.03002 2005-10-20 22:35:00 - Minor bugfix to new (Row.pm) - Schema doesn't die if it can't load a class (Schema.pm) diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index c143635..0d2f400 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -6,7 +6,7 @@ use warnings; use vars qw($VERSION); use base qw/DBIx::Class::Componentised/; -$VERSION = '0.03002'; +$VERSION = '0.03003'; 1; diff --git a/lib/DBIx/Class/Relationship/Base.pm b/lib/DBIx/Class/Relationship/Base.pm index 3aa67aa..7c84ace 100644 --- a/lib/DBIx/Class/Relationship/Base.pm +++ b/lib/DBIx/Class/Relationship/Base.pm @@ -42,7 +42,7 @@ sub add_relationship { my ($class, $rel, $f_class, $cond, $attrs) = @_; die "Can't create relationship without join condition" unless $cond; $attrs ||= {}; - eval "use $f_class;"; + eval "require $f_class;"; my %rels = %{ $class->_relationships }; $rels{$rel} = { class => $f_class, cond => $cond,