package SmokeOrNot::Model::DB;

use strict;
use base 'Catalyst::Model::DBIC::Schema';

# get the database credentials
eval "require '/home/gregoa/secret/Connectinfo.pm'";
if ($@) { die "Database credentials not found: $@\n"; }

__PACKAGE__->config(
    schema_class => 'SmokeOrNot::Schema',
    connect_info => $Connectinfo::connect_info,
);

=head1 NAME

SmokeOrNot::Model::DB - Catalyst DBIC Schema Model
=head1 SYNOPSIS

See L<SmokeOrNot>

=head1 DESCRIPTION

L<Catalyst::Model::DBIC::Schema> Model using schema L<SmokeOrNot::Schema>

=head1 COPYRIGHT

Copyright 2009-2010, gregor herrmann <gregor.herrmann@comodo.priv.at>

=head1 LICENSE

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

=cut

1;
