fixes from Daisuke Murase list emails (connect vs connection, get new() working right...
Brandon L. Black [Thu, 9 Feb 2006 06:36:12 +0000 (06:36 +0000)]
Changes
META.yml
lib/Catalyst/Model/DBIC/Schema.pm

diff --git a/Changes b/Changes
index 7e9982d..788a6d2 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,4 +1,7 @@
 Revision history for Perl extension Catalyst::Model::DBIC::Schema
 
+0.02  Not yet released
+        - Another snapshot
+
 0.01  Not yet released
-        - First release
+        - First snapshot
index e8e6422..3e793b3 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 ---
 name: Catalyst-Model-DBIC-Schema
-version: 0.01
+version: 0.02
 author:
   - 'Brandon L Black, C<blblack@gmail.com>'
 abstract: DBIx::Class::Schema Model Class
@@ -18,5 +18,5 @@ provides:
     file: lib/Catalyst/Helper/Model/DBIC/Schema.pm
   Catalyst::Model::DBIC::Schema:
     file: lib/Catalyst/Model/DBIC/Schema.pm
-    version: 0.01
+    version: 0.02
 generated_by: Module::Build version 0.2611
index a83084c..0596b47 100644 (file)
@@ -6,7 +6,7 @@ use NEXT;
 use UNIVERSAL::require;
 use Carp;
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 __PACKAGE__->mk_classaccessor('composed_schema');
 __PACKAGE__->mk_accessors('schema');
@@ -145,8 +145,7 @@ Shortcut for ->schema->resultset
 =cut
 
 sub new {
-    my ( $self, $c ) = @_;
-    $self = $self->NEXT::new($c);
+    my $self = shift->NEXT::new(@_);
     
     my $class = ref($self);
     my $model_name = $class;
@@ -173,7 +172,7 @@ sub new {
     $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) {