[Catalyst-commits] r11594 - in
Catalyst-Plugin-Session-Store-DBI/trunk:
lib/Catalyst/Plugin/Session/Store t/lib
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sat Oct 17 16:50:55 GMT 2009
Author: rafl
Date: 2009-10-17 16:50:54 +0000 (Sat, 17 Oct 2009)
New Revision: 11594
Modified:
Catalyst-Plugin-Session-Store-DBI/trunk/lib/Catalyst/Plugin/Session/Store/DBI.pm
Catalyst-Plugin-Session-Store-DBI/trunk/t/lib/TestAppDBIC.pm
Log:
Don't treat a model name as a class name.
Modified: Catalyst-Plugin-Session-Store-DBI/trunk/lib/Catalyst/Plugin/Session/Store/DBI.pm
===================================================================
--- Catalyst-Plugin-Session-Store-DBI/trunk/lib/Catalyst/Plugin/Session/Store/DBI.pm 2009-10-17 16:40:51 UTC (rev 11593)
+++ Catalyst-Plugin-Session-Store-DBI/trunk/lib/Catalyst/Plugin/Session/Store/DBI.pm 2009-10-17 16:50:54 UTC (rev 11594)
@@ -213,7 +213,7 @@
elsif ( $c->model($class)
&& $c->model($class)->isa('DBIx::Class::DB')
) {
- eval { $dbh = $class->storage->dbh };
+ eval { $dbh = $c->model($class)->storage->dbh };
if ($@) {
Catalyst::Exception->throw(
message => "Unable to get a handle from "
Modified: Catalyst-Plugin-Session-Store-DBI/trunk/t/lib/TestAppDBIC.pm
===================================================================
--- Catalyst-Plugin-Session-Store-DBI/trunk/t/lib/TestAppDBIC.pm 2009-10-17 16:40:51 UTC (rev 11593)
+++ Catalyst-Plugin-Session-Store-DBI/trunk/t/lib/TestAppDBIC.pm 2009-10-17 16:50:54 UTC (rev 11594)
@@ -10,7 +10,7 @@
name => __PACKAGE__,
'Plugin::Session' => {
expires => 3600,
- dbi_dbh => 'TestAppDBIC::Model::DBIC',
+ dbi_dbh => 'DBIC',
}
);
More information about the Catalyst-commits
mailing list