Skip Menu |

This queue is for tickets about the Maypole CPAN distribution.

Report information
The Basics
Id: 16869
Status: resolved
Priority: 0/
Queue: Maypole

People
Owner: TEEJAY [...] cpan.org
Requestors: rt-cpan [...] trout.me.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 2.11



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 :)
[guest - Mon Jan 2 13:03:06 2006]: Show quoted text
> 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 :)
fixed in SVN revision 444