aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Catalyst
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Catalyst')
-rw-r--r--lib/Catalyst/Model/Reaction/InterfaceModel/DBIC.pm5
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 {