aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Model/DB.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-10 14:56:00 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-10 14:56:00 +0100
commit391ca1c469d93bb2c4798cc15e56fc495b5e80dd (patch)
tree6bc90fae589de824095e668fbf510ef259935729 /perllib/FixMyStreet/App/Model/DB.pm
parent7c96f8ec61d6eddc211f3f0e71cdb276c6a5f773 (diff)
parent860383f0de3287b0666d64a3ffff3db3a0f087ae (diff)
Merge branch 'migrate_to_catalyst' into reportemptyhomes
Diffstat (limited to 'perllib/FixMyStreet/App/Model/DB.pm')
-rw-r--r--perllib/FixMyStreet/App/Model/DB.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Model/DB.pm b/perllib/FixMyStreet/App/Model/DB.pm
new file mode 100644
index 000000000..f9e43172f
--- /dev/null
+++ b/perllib/FixMyStreet/App/Model/DB.pm
@@ -0,0 +1,24 @@
+package FixMyStreet::App::Model::DB;
+use base 'Catalyst::Model::DBIC::Schema';
+
+use strict;
+use warnings;
+
+use FixMyStreet;
+
+__PACKAGE__->config(
+ schema_class => 'FixMyStreet::DB',
+ connect_info => FixMyStreet->dbic_connect_info,
+);
+
+=head1 NAME
+
+FixMyStreet::App::Model::DB - Catalyst DBIC Schema Model
+
+=head1 DESCRIPTION
+
+L<Catalyst::Model::DBIC::Schema> Model using schema L<FixMyStreet::DB>
+
+=cut
+
+1;