Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use DBI_CLASS

  • Loading branch information...
commit d9c41c9cc4e205aebb61abe19d0d3fe1609086a3 1 parent adc49cd
Masahiro Nagano authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/NoNoPaste.pm
4 lib/NoNoPaste.pm
... ... @@ -1,7 +1,7 @@
1 1 package NoNoPaste;
2 2
3 3 use Shirahata2;
4   -use Scope::Container::DBI;
  4 +use Scope::Container::DBI 0.03;
5 5 use Path::Class;
6 6 use Digest::SHA;
7 7
@@ -10,10 +10,10 @@ our $VERSION = 0.01;
10 10 sub dbh {
11 11 my $self = shift;
12 12 my $db_path = Path::Class::file( $self->root_dir, "data", "nonopaste.db" );
  13 + local $Scope::Container::DBI::DBI_CLASS = 'DBIx::Sunny';
13 14 my $dbh = Scope::Container::DBI->connect(
14 15 "dbi:SQLite:dbname=$db_path", '', '',
15 16 {
16   - RootClass => 'DBIx::Sunny',
17 17 Callbacks => {
18 18 connected => sub {
19 19 my $connect = shift;

0 comments on commit d9c41c9

Please sign in to comment.
Something went wrong with that request. Please try again.