fix POD coverage and t/backcompat/0.04006/23dumpmore.t
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / Compat / v0_040.pm
CommitLineData
7824616e 1package DBIx::Class::Schema::Loader::Compat::v0_040;
2
3use strict;
4use warnings;
5use Class::C3;
254ba31c 6
7use base 'DBIx::Class::Schema::Loader::Base';
8
7824616e 9use DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040;
10
11# Make a moniker from a table
12sub _default_table2moniker {
13 my ($self, $table) = @_;
14
15 return join '', map ucfirst, split /[\W_]+/, lc $table;
16}
17
18sub _relbuilder {
19 my ($self) = @_;
9cfd45b7 20 $self->{relbuilder} ||=
21 DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040->new(
22 $self->schema, $self->inflect_plural, $self->inflect_singular
23 );
7824616e 24}
25
261;
818c6a0c 27
28=head1 NAME
29
30DBIx::Class::Schema::Loader::Compat::v0_040 - Compatibility for DBIx::Class::Schema::Loader
31version 0.04006
32
33=head1 DESCRIPTION
34
35Dumps from the old version are auto-detected, and the compat layer is turned
36on. See also L<DBIx::Class::Schema::Loader::Base/namingg>.
37
38=cut