X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=e16dd829abc76ab7e3c6d1da9b40f0153cfc7e85;hb=72ebd12372713c17bb79d6510f3da7c7b4561338;hp=6e41ee7d3e56f88428bfdd022ce1c04f719762f2;hpb=7637da3c79552ce54e8b71b880af799ddfd64eca;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 6e41ee7..e16dd82 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -6,7 +6,7 @@ use warnings; use Maypole::Config; use Maypole::Constants; -our $VERSION = '2.04'; +our $VERSION = '2.05'; __PACKAGE__->mk_classdata($_) for qw( config init_done view_object ); __PACKAGE__->mk_accessors( @@ -23,6 +23,7 @@ sub setup { $calling_class = ref $calling_class if ref $calling_class; { no strict 'refs'; + no warnings 'redefine'; # Naughty. *{ $calling_class . "::handler" } = @@ -72,6 +73,7 @@ sub handler { sub handler_guts { my $r = shift; $r->model_class( $r->config->model->class_of( $r, $r->{table} ) ); + my $applicable = $r->is_applicable; unless ( $applicable == OK ) {