X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole%2FModel%2FBase.pm;h=338f0e8a85449808cc5e9954a581cd5dceaa9c29;hp=26288c29f15cd32d4d00a0dd117ba215cbc1c333;hb=12d8a77a713d5ed4f08414e5f34e96d45f60e2d3;hpb=f4a654d5fee1b79ced98bb6d71a4f3b4bf402ecd diff --git a/lib/Maypole/Model/Base.pm b/lib/Maypole/Model/Base.pm index 26288c2..338f0e8 100644 --- a/lib/Maypole/Model/Base.pm +++ b/lib/Maypole/Model/Base.pm @@ -4,6 +4,7 @@ use strict; use Maypole::Constants; use attributes (); +# don't know why this is a global - drb our %remember; sub MODIFY_CODE_ATTRIBUTES @@ -28,6 +29,7 @@ sub process { $r->{template} = $method; my $obj = $class->fetch_objects($r); $r->objects([$obj]) if $obj; + $class->$method( $r, $obj, @{ $r->{args} } ); } @@ -195,7 +197,7 @@ sub is_public return 1 if $attrs{Exported}; - warn "$action not exported" if Maypole->debug; + warn "'$action' not exported"; return 0; }