fix think-o
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / DB.pm
index 07c8924..007c82a 100644 (file)
@@ -93,7 +93,8 @@ register themselves with it.
 
 sub setup_schema_instance {
   my $class = shift;
-  my $schema = bless({}, 'DBIx::Class::Schema');
+  my $schema = {};
+  bless $schema, 'DBIx::Class::Schema';
   $class->mk_classdata('schema_instance' => $schema);
 }
 
@@ -176,9 +177,6 @@ Alias for L<txn_commit>
 
 Alias for L<txn_rollback>
 
-
-1;
-
 =head1 AUTHORS
 
 Matt S. Trout <mst@shadowcatsystems.co.uk>
@@ -189,3 +187,4 @@ You may distribute this code under the same terms as Perl itself.
 
 =cut
 
+1;