Skip to content

Commit

Permalink
Tidied up a little
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Sep 15, 2016
1 parent 4e99d03 commit 1411b54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Magnum/Schema.pm
Expand Up @@ -27,13 +27,11 @@ sub get_schema {
die "You need to set the following environment variables: @errs\n";
}

my $sch = Magnum::Schema->connect(
return __PACKAGE__->connect(
"dbi:mysql:database=$ENV{MAG_DB};host=$ENV{MAG_DB_HOST}",
$ENV{MAG_DB_USER}, $ENV{MAG_DB_PASS},
{ mysql_enable_utf8 => 1 }
);

return $sch;
}

1;
Expand Down

0 comments on commit 1411b54

Please sign in to comment.