Revision history for DBIx-Class-Fixtures
+1.001008
+- Man, I should test better.
+
+1.001007
+- Should use Schema->source(), not ->resultset().
+
+1.001006
+- Schema->resultset() throws an exception, not return undef, when it can't find
+ a moniker.
+
1.001005
- Fixed problem where rules containing an override of has_many weren't applied
correctly.
=head1 VERSION
-Version 1.001005
+Version 1.001008
=cut
-our $VERSION = '1.001005';
+our $VERSION = '1.001008';
=head1 NAME
my @sources = sort { $a->{class} cmp $b->{class} } @{delete $config->{sets}};
while ( my ($k,$v) = each %{ $config->{rules} } ) {
- if ( my $rs = $schema->resultset($k) ) {
- $config->{rules}{$rs->result_source->source_name} = $v;
+ if ( my $source = eval { $schema->source($k) } ) {
+ $config->{rules}{$source->source_name} = $v;
}
}