Made fa96ac0 work wit the rest of the test suite ghpr/closed/inspiring_pr59
Jan Henning Thorsen [Thu, 5 Sep 2013 08:46:12 +0000 (10:46 +0200)]
  All tests successful.
  Files=94, Tests=20848, 51 wallclock secs
  Result: PASS

lib/DBIx/Class/Schema.pm

index b59c6f1..c6f2360 100644 (file)
@@ -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 {