From: Jan Henning Thorsen Date: Thu, 5 Sep 2013 08:46:12 +0000 (+0200) Subject: Made fa96ac0 work wit the rest of the test suite X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fghpr%2Fclosed%2Finspiring_pr59;p=dbsrgits%2FDBIx-Class-Historic.git Made fa96ac0 work wit the rest of the test suite All tests successful. Files=94, Tests=20848, 51 wallclock secs Result: PASS --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index b59c6f1..c6f2360 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -625,7 +625,7 @@ sub source { $self->throw_exception("Can't find source for ${source_name}") unless $mapped; return $self->_lazy_source($mapped->[0], $source_name, $mapped->[1]) if ref $mapped eq 'ARRAY'; - return $mapped; + return $sreg->{$mapped}; } sub _lazy_source {