Some cleanup

This commit is contained in:
swagg boi 2021-12-04 18:50:19 -05:00
parent ff8ecd2773
commit a172a28e6d
2 changed files with 4 additions and 6 deletions

View file

@ -14,11 +14,11 @@ plugin 'Config';
# Helpers
helper pg => sub {
state $pg = Mojo::Pg->new(
'postgres://' .
'postgres://' .
app->config->{'pg_user'} .
':' .
':' .
app->config->{'pg_pw'} .
'@localhost/' .
'@localhost/' .
app->config->{'pg_db'}
);
};

View file

@ -9,9 +9,7 @@ use Mojo::Base -base, -signatures;
has 'pg';
sub new($class, $pg, $object) {
bless {
$pg => $object
}
bless {$pg => $object}
}
sub test_model($self, $string) {