Incompatible API changes:
Maypole:
- - is_applicable() renamed to is_model_applicable(), and returns boolean
- instead of a status code. Old-style is_applicable() will still work,
- but issues a warning.
+ - is_applicable() deprecated for is_model_applicable(). is_applicable is
+ an alias for is_model_applicable now.
Maypole::Model
- delete and search actions are now deprecated - use do_search and do_delete
instead
sub delete : Exported {
my $self = shift;
my ($sub) = (caller(1))[3];
+ # So subclasses can still send delete down ...
$sub =~ /^(.+)::([^:]+)$/;
- # So subclasses can still send search down ...
- return ($1 ne "Maypole::Model::Base" && $2 ne "delete") ?
- $self->SUPER::search(@_) : $self->do_delete(@_);
+ if ($1 ne "Maypole::Model::Base" && $2 ne "delete") {
+ $self->SUPER::delete(@_);
+ } else {
+ warn "Maypole::Model::CDBI delete method is deprecated\n";
+ $self->do_delete(@_);
+ }
}
sub do_delete {