aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Questionnaire.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-03 10:47:33 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-03 10:47:33 +0100
commit654fb3942a04e53c09d7cf516c7bf6a3523d5557 (patch)
tree7149163310cd3da46c01ed67eb6e969307abb452 /perllib/FixMyStreet/DB/Result/Questionnaire.pm
parent26d2bb9dddb0f9e10267ec47dbcb4a1571021a8b (diff)
parent5c06c6c6894a9094a8c60324ac000214964f5da8 (diff)
Merge branch 'moderation-dst-time'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Questionnaire.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Questionnaire.pm21
1 files changed, 7 insertions, 14 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Questionnaire.pm b/perllib/FixMyStreet/DB/Result/Questionnaire.pm
index 6b7ab9452..2d5445669 100644
--- a/perllib/FixMyStreet/DB/Result/Questionnaire.pm
+++ b/perllib/FixMyStreet/DB/Result/Questionnaire.pm
@@ -8,7 +8,11 @@ use strict;
use warnings;
use base 'DBIx::Class::Core';
-__PACKAGE__->load_components("FilterColumn", "InflateColumn::DateTime", "EncodedColumn");
+__PACKAGE__->load_components(
+ "FilterColumn",
+ "FixMyStreet::InflateColumn::DateTime",
+ "FixMyStreet::EncodedColumn",
+);
__PACKAGE__->table("questionnaire");
__PACKAGE__->add_columns(
"id",
@@ -40,23 +44,12 @@ __PACKAGE__->belongs_to(
);
-# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-09-10 17:11:54
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oL1Hk4/bNG14CY74GA75SA
+# Created by DBIx::Class::Schema::Loader v0.07035 @ 2019-04-25 12:06:39
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AWRb6itjsVkG5VUDRmBTIg
use Moo;
use namespace::clean -except => [ 'meta' ];
-my $stz = sub {
- my ( $orig, $self ) = ( shift, shift );
- my $s = $self->$orig(@_);
- return $s unless $s && UNIVERSAL::isa($s, "DateTime");
- FixMyStreet->set_time_zone($s);
- return $s;
-};
-
-around whensent => $stz;
-around whenanswered => $stz;
-
sub marks_fixed {
my $self = shift;
my $new_fixed = FixMyStreet::DB::Result::Problem->fixed_states()->{$self->new_state};