package Apache::MVC::Model::Base;
our %remember;
sub MODIFY_CODE_ATTRIBUTES { 
    $remember{$_[1]} = $_[2]; ()
}

sub FETCH_CODE_ATTRIBUTES { $remember{$_[1]} 
} 

sub view :Exported {
    my ($self, $r) = @_;
    return $self->retrieve(shift @{$r->{args}});
}

sub process {
    my ($class, $r) = @_;
    $r->template( my $method = $r->action );
    $r->objects([ $class->$method($r) ]);
}
