aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311/Endpoint/Role/mySociety.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/Open311/Endpoint/Role/mySociety.pm')
-rw-r--r--perllib/Open311/Endpoint/Role/mySociety.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perllib/Open311/Endpoint/Role/mySociety.pm b/perllib/Open311/Endpoint/Role/mySociety.pm
index 42afe73bb..3669c585b 100644
--- a/perllib/Open311/Endpoint/Role/mySociety.pm
+++ b/perllib/Open311/Endpoint/Role/mySociety.pm
@@ -35,6 +35,12 @@ L<Open311::Endpoint::Service::Request::mySociety> objects.
use Moo::Role;
no warnings 'illegalproto';
+use Open311::Endpoint::Service::Request::mySociety;
+has '+request_class' => (
+ is => 'ro',
+ default => 'Open311::Endpoint::Service::Request::mySociety',
+);
+
around dispatch_request => sub {
my ($orig, $self, @args) = @_;
my @dispatch = $self->$orig(@args);
@@ -115,7 +121,7 @@ sub format_updates {
),
(
map {
- $_ => $self->w3_dt->format_datetime( $update->$_ ),
+ $_ => $self->w3_dt->format_datetime( $update->$_ ),
}
qw/
updated_datetime