Make this match the style in the docs just in-case
This commit is contained in:
parent
cefba7d507
commit
4ca8ebdd15
|
@ -13,16 +13,16 @@ sub startup($self) {
|
|||
$self->plugin(AssetPack => {pipes => [qw{Css Combine}]});
|
||||
|
||||
# Helpers
|
||||
$self->helper(pg => sub ($c) {
|
||||
state $pg = Mojo::Pg->new($c->config->{$self->mode}{'pg_string'})
|
||||
$self->helper(pg => sub {
|
||||
state $pg = Mojo::Pg->new(shift->config->{$self->mode}{'pg_string'})
|
||||
});
|
||||
|
||||
$self->helper(thread => sub ($c) {
|
||||
state $thread = PostText::Model::Thread->new(pg => $c->pg)
|
||||
$self->helper(thread => sub {
|
||||
state $thread = PostText::Model::Thread->new(pg => shift->pg)
|
||||
});
|
||||
|
||||
$self->helper(remark => sub ($c) {
|
||||
state $remark = PostText::Model::Remark->new(pg => $c->pg)
|
||||
$self->helper(remark => sub {
|
||||
state $remark = PostText::Model::Remark->new(pg => shift->pg)
|
||||
});
|
||||
|
||||
$self->helper(truncate_text => sub ($c, $input_text) {
|
||||
|
|
Loading…
Reference in a new issue