Some clean-up and TODO
This commit is contained in:
parent
99bc7f79d4
commit
9089b78db7
|
@ -33,6 +33,7 @@ Run the tests locally (against development environment):
|
|||
## TODOs
|
||||
|
||||
1. Actions for creating moderators and resetting passwords
|
||||
1. Tests for Moderator
|
||||
1. CSS
|
||||
|
||||
## Crazy future ideas
|
||||
|
|
|
@ -2,8 +2,7 @@ package PostText::Model::Moderator;
|
|||
|
||||
use Mojo::Base -base, -signatures;
|
||||
|
||||
has 'pg';
|
||||
has 'authenticator';
|
||||
has [qw{pg authenticator}];
|
||||
|
||||
sub check($self, $email, $password) {
|
||||
my $moderator =
|
||||
|
|
|
@ -4,7 +4,7 @@ use Mojo::Base -base, -signatures;
|
|||
|
||||
has 'pg';
|
||||
|
||||
has per_page => sub { 5 };
|
||||
has per_page => 5;
|
||||
|
||||
sub by_page_for($self, $thread_id, $this_page = 1) {
|
||||
my $date_format = $self->{'date_format'};
|
||||
|
|
|
@ -4,7 +4,7 @@ use Mojo::Base -base, -signatures;
|
|||
|
||||
has 'pg';
|
||||
|
||||
has per_page => sub { 5 };
|
||||
has per_page => 5;
|
||||
|
||||
sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) {
|
||||
my @data = ($author, $title, $body, $hidden, $flagged);
|
||||
|
|
Loading…
Reference in New Issue
Block a user