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
|
## TODOs
|
||||||
|
|
||||||
1. Actions for creating moderators and resetting passwords
|
1. Actions for creating moderators and resetting passwords
|
||||||
|
1. Tests for Moderator
|
||||||
1. CSS
|
1. CSS
|
||||||
|
|
||||||
## Crazy future ideas
|
## Crazy future ideas
|
||||||
|
@ -2,8 +2,7 @@ package PostText::Model::Moderator;
|
|||||||
|
|
||||||
use Mojo::Base -base, -signatures;
|
use Mojo::Base -base, -signatures;
|
||||||
|
|
||||||
has 'pg';
|
has [qw{pg authenticator}];
|
||||||
has 'authenticator';
|
|
||||||
|
|
||||||
sub check($self, $email, $password) {
|
sub check($self, $email, $password) {
|
||||||
my $moderator =
|
my $moderator =
|
||||||
|
@ -4,7 +4,7 @@ use Mojo::Base -base, -signatures;
|
|||||||
|
|
||||||
has 'pg';
|
has 'pg';
|
||||||
|
|
||||||
has per_page => sub { 5 };
|
has per_page => 5;
|
||||||
|
|
||||||
sub by_page_for($self, $thread_id, $this_page = 1) {
|
sub by_page_for($self, $thread_id, $this_page = 1) {
|
||||||
my $date_format = $self->{'date_format'};
|
my $date_format = $self->{'date_format'};
|
||||||
|
@ -4,7 +4,7 @@ use Mojo::Base -base, -signatures;
|
|||||||
|
|
||||||
has 'pg';
|
has 'pg';
|
||||||
|
|
||||||
has per_page => sub { 5 };
|
has per_page => 5;
|
||||||
|
|
||||||
sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) {
|
sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) {
|
||||||
my @data = ($author, $title, $body, $hidden, $flagged);
|
my @data = ($author, $title, $body, $hidden, $flagged);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user