# vim:ft=perl
package BeerDB;
use Apache::MVC;
use base 'Apache::MVC';
sub handler { Apache::MVC::handler("BeerDB", @_) }
BeerDB->set_database("dbi:mysql:beerdb");
BeerDB->config->{template_root} = "/opt/beer";
BeerDB->config->{uri_base} = "http://neo.trinity-house.org.uk/beerdb/";

use Class::DBI::Loader::Relationship;
BeerDB->config->{loader}->relationship($_) for (
    "a brewery produces beers",
    "a beer has a style",
    "a pub has beers on handpumps");

1;
