From: Peter Rabbitson Date: Wed, 20 Apr 2016 06:02:29 +0000 (+0200) Subject: Reorder a couple stray loads in ResultSource.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb421b66e82092e8fab0ed3a002061f7a4b9a641;p=dbsrgits%2FDBIx-Class-Historic.git Reorder a couple stray loads in ResultSource.pm --- diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 6fd80d7..b6fb310 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -5,9 +5,6 @@ use warnings; use base qw/DBIx::Class::ResultSource::RowParser DBIx::Class/; -use DBIx::Class::ResultSet; -use DBIx::Class::ResultSourceHandle; - use DBIx::Class::Carp; use DBIx::Class::_Util qw( UNRESOLVABLE_CONDITION dbic_internal_try ); use SQL::Abstract 'is_literal_value'; @@ -2318,6 +2315,7 @@ relationship definitions. =cut sub handle { + require DBIx::Class::ResultSourceHandle; return DBIx::Class::ResultSourceHandle->new({ source_moniker => $_[0]->source_name,