--- lib/Grep/Search.pm 2007/03/14 20:02:19 110 +++ lib/Grep/Search.pm 2007/03/14 21:10:53 112 @@ -2,7 +2,7 @@ use strict; use warnings; -use base qw( Class::Accessor Jifty::Object ); +use base qw( Class::Accessor ); Grep::Search->mk_accessors( qw( analyzer store writer create index_path ) ); use Data::Dump qw/dump/; @@ -23,6 +23,8 @@ =cut +sub log { Jifty->web->log } + sub new { my $class = shift; my $self = $class->SUPER::new(@_); @@ -48,7 +50,6 @@ return $self; } - =head2 add $search->add( $record, $owner_id ); @@ -200,13 +201,10 @@ $self->writer->close; } - $self->writer( undef ); - $self->store( undef ); - $self->create( undef ); - $self->analyzer( undef ); - $self->log->debug("finish"); + undef $self; + return; }