Subject: | Make Maypole->setup not force Model class onto ISA |
for my $subclass ( @{ $config->classes } ) {
no strict 'refs';
unshift @{ $subclass . "::ISA" }, $config->model;
$config->model->adopt($subclass)
if $config->model->can("adopt");
}
if the above was altered to
for my $subclass ( @{ $config->classes } ) {
next if $subclass->isa("Maypole::Model::Base");
no strict 'refs';
unshift @{ $subclass . "::ISA" }, $config->model;
$config->model->adopt($subclass)
if $config->model->can("adopt");
}
I'd be a very happy man :)