Make this match the style in the docs just in-case

This commit is contained in:
swagg boi 2022-10-12 10:36:44 -04:00
parent cefba7d507
commit 4ca8ebdd15

View file

@ -13,16 +13,16 @@ sub startup($self) {
$self->plugin(AssetPack => {pipes => [qw{Css Combine}]}); $self->plugin(AssetPack => {pipes => [qw{Css Combine}]});
# Helpers # Helpers
$self->helper(pg => sub ($c) { $self->helper(pg => sub {
state $pg = Mojo::Pg->new($c->config->{$self->mode}{'pg_string'}) state $pg = Mojo::Pg->new(shift->config->{$self->mode}{'pg_string'})
}); });
$self->helper(thread => sub ($c) { $self->helper(thread => sub {
state $thread = PostText::Model::Thread->new(pg => $c->pg) state $thread = PostText::Model::Thread->new(pg => shift->pg)
}); });
$self->helper(remark => sub ($c) { $self->helper(remark => sub {
state $remark = PostText::Model::Remark->new(pg => $c->pg) state $remark = PostText::Model::Remark->new(pg => shift->pg)
}); });
$self->helper(truncate_text => sub ($c, $input_text) { $self->helper(truncate_text => sub ($c, $input_text) {