X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=e16dd829abc76ab7e3c6d1da9b40f0153cfc7e85;hb=9b8f3c269605db27908000957b20cc3a336f9148;hp=bcd0b3ab0d6ff7f6bd12f858b3ab40bab1276e2f;hpb=b65ee86d592a4038c2bd7f354a29894145758893;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index bcd0b3a..e16dd82 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -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 ) {