aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-10 12:34:16 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-10 12:34:16 +0100
commiteda7a2d88e13a89e22843203cf4f749c8679b4d7 (patch)
tree682568bc6f46d262e5755268ac65238af4562b52 /perllib/FixMyStreet/DB.pm
parentb862ad1300116978f98eae9a079a22d49fc4f85e (diff)
parentdf1494f5a9de03c80764adf6108cbf699f547459 (diff)
Merge branch '1244-corps-translatable-body-names'
Diffstat (limited to 'perllib/FixMyStreet/DB.pm')
-rw-r--r--perllib/FixMyStreet/DB.pm17
1 files changed, 4 insertions, 13 deletions
diff --git a/perllib/FixMyStreet/DB.pm b/perllib/FixMyStreet/DB.pm
index d920c809f..cee66b434 100644
--- a/perllib/FixMyStreet/DB.pm
+++ b/perllib/FixMyStreet/DB.pm
@@ -1,22 +1,13 @@
-use utf8;
package FixMyStreet::DB;
-# Created by DBIx::Class::Schema::Loader
-# DO NOT MODIFY THE FIRST PART OF THIS FILE
-
use strict;
use warnings;
+use FixMyStreet::DB::Schema;
-use base 'DBIx::Class::Schema';
-
-__PACKAGE__->load_namespaces;
-
-
-# Created by DBIx::Class::Schema::Loader v0.07017 @ 2012-03-08 17:19:55
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CjFpUvon7KggFM7OF7VK/w
+my $schema;
-use FixMyStreet;
+sub schema { $schema ||= FixMyStreet::DB::Schema->clone }
-__PACKAGE__->connection(FixMyStreet->dbic_connect_info);
+sub resultset { shift->schema->resultset(@_) }
1;