sub pluralize_resultset_accessor_name {
my ($self, $original) = @_;
- return join ' ', split /\s+/,
+ return join '_', split /\s+/,
Lingua::EN::Inflect::Phrase::to_PL(join ' ', split /_/, $original);
}
'Got schema 1';
isa_ok $schema1->resultset('Artist'), 'DBIx::Class::ResultSet';
-can_ok $schema1, qw/cds artists/;
+can_ok $schema1, qw/cds artists liner_notes/;
isa_ok $schema1->artists, 'DBIx::Class::ResultSet'; # generic resultset
isa_ok $schema1->cds, 'MyApp1::Schema::ResultSet::CD'; # custom ResultSet