Moose overriding for indexContent.

This commit is contained in:
Colin Kuskie 2010-04-07 15:07:20 -07:00
parent 953df9d6a9
commit c786395eb4
13 changed files with 65 additions and 52 deletions

View file

@ -367,12 +367,13 @@ Adding location and eventNumber as a keyword. See WebGUI::Asset::indexContent()
=cut
sub indexContent {
around indexContent => sub {
my $orig = shift;
my $self = shift;
my $indexer = $self->SUPER::indexContent;
my $indexer = $self->$orig(@_);
$indexer->addKeywords($self->location.' '.$self->eventNumber);
return $indexer;
}
};