use the right module for inject_base
Arthur Axel "fREW" Schmidt [Wed, 27 Jan 2010 06:41:26 +0000 (06:41 +0000)]
lib/DBIx/Class/Schema/Journal.pm

index 8e0b7e7..deb16f7 100644 (file)
@@ -4,6 +4,7 @@ use base qw/DBIx::Class/;
 
 use Scalar::Util 'blessed';
 use DBIx::Class::Schema::Journal::DB;
+use Class::C3::Componentised ();
 
 __PACKAGE__->mk_classdata('journal_storage_type');
 __PACKAGE__->mk_classdata('journal_connection');
@@ -118,7 +119,7 @@ sub create_journal_for
         my $audit_source = join("", $s_name, $audit);
         my $class = blessed($journal_schema) . "::$audit_source";
 
-        DBIx::Class::Componentised->inject_base($class, "DBIx::Class::Schema::Journal::DB::$audit");
+                 Class::C3::Componentised->inject_base($class, "DBIx::Class::Schema::Journal::DB::$audit");
 
         $class->journal_define_table($source);