Update for new Gruntmaster::Data
[plack-app-gruntmaster.git] / app.psgi
index 3a6be219ec8fe3f4a5a53a714247e9a8dbdcfa22..80ed1a2268195992ddfb5cc40d35226d8944b356 100644 (file)
--- a/app.psgi
+++ b/app.psgi
@@ -28,7 +28,7 @@ my $dbinit;
 sub add_database {
        my $app = $_[0];
        sub {
-               Gruntmaster::Data::init $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:' unless $dbinit;
+               dbinit $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:' unless $dbinit;
                $dbinit = 1;
                $app->(@_)
        }
This page took 0.00997 seconds and 4 git commands to generate.