From: Peter Rabbitson Date: Tue, 25 Aug 2009 10:35:19 +0000 (+0000) Subject: Switch storage class loading to ensure_class_loaded X-Git-Tag: v0.08111~50^2~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=82202206e6209c9e0797495b9ec0cdff2786b9c7;p=dbsrgits%2FDBIx-Class.git Switch storage class loading to ensure_class_loaded --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index a7080e2..2451f55 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -814,7 +814,7 @@ sub connection { $storage_class = 'DBIx::Class::Storage'.$storage_class if $storage_class =~ m/^::/; - eval "require ${storage_class};"; + eval { $self->ensure_class_loaded ($storage_class) }; $self->throw_exception( "No arguments to load_classes and couldn't load ${storage_class} ($@)" ) if $@;