diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-06-22 18:01:16 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-06-22 18:01:16 +0000 |
commit | da4da183f5356e572c1c614ae80f83c08e0dcb4e (patch) | |
tree | bb8d8b3f7828c00b364abfb05a7647c1a9ddb0ca /lib/Catalyst/Model/Reaction/InterfaceModel | |
parent | 577fe414348267534faf952536025a61a3c0598f (diff) | |
download | reaction-da4da183f5356e572c1c614ae80f83c08e0dcb4e.tar.gz reaction-da4da183f5356e572c1c614ae80f83c08e0dcb4e.zip |
fix up config usage
Diffstat (limited to 'lib/Catalyst/Model/Reaction/InterfaceModel')
-rw-r--r-- | lib/Catalyst/Model/Reaction/InterfaceModel/DBIC.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Catalyst/Model/Reaction/InterfaceModel/DBIC.pm b/lib/Catalyst/Model/Reaction/InterfaceModel/DBIC.pm index 6b59e29..51654c2 100644 --- a/lib/Catalyst/Model/Reaction/InterfaceModel/DBIC.pm +++ b/lib/Catalyst/Model/Reaction/InterfaceModel/DBIC.pm @@ -11,7 +11,8 @@ use Class::MOP; class DBIC, is 'Reaction::Object', is 'Catalyst::Component', which { - has '_schema' => (isa => 'DBIx::Class::Schema', is => 'ro', required => 1); + has '_schema' => (isa => 'DBIx::Class::Schema', is => 'ro', required => 1); + has '_im_class' => (is => 'ro', required => 1); implements 'COMPONENT' => as { my ($class, $app, $args) = @_; @@ -34,7 +35,7 @@ class DBIC, is 'Reaction::Object', is 'Catalyst::Component', which { my $schema = $schema_class ->connect($cfg{db_dsn}, $cfg{db_user}, $cfg{db_password}, $params); - return $class->new(_schema => $schema); + return $class->new(_schema => $schema, _im_class => $im_class); }; implements 'ACCEPT_CONTEXT' => as { |