use UNIVERSAL::require;
use Carp;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
__PACKAGE__->mk_classaccessor('composed_schema');
__PACKAGE__->mk_accessors('schema');
# or, if your schema works on different storage drivers:
my $newconn = $c->model('Foo')->composed_schema->clone();
$newconn->storage_type('::LDAP');
- $newconn->connect(...);
+ $newconn->connection(...);
# and again, a convenience shortcut
my $newconn = $c->model('Foo')->clone();
$newconn->storage_type('::LDAP');
- $newconn->connect(...);
+ $newconn->connection(...);
=head1 DESCRIPTION
=cut
sub new {
- my ( $self, $c ) = @_;
- $self = $self->NEXT::new($c);
+ my $self = shift->NEXT::new(@_);
my $class = ref($self);
my $model_name = $class;
$self->composed_schema($schema_class->compose_namespace($class));
$self->schema($self->composed_schema->clone);
$self->schema->storage_type($self->{storage_type}) if $self->{storage_type};
- $self->schema->connect(@{$self->{connect_info}});
+ $self->schema->connection(@{$self->{connect_info}});
no strict 'refs';
foreach my $moniker ($self->schema->sources) {