Skip to content

Commit

Permalink
fix for removing item on lsi
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Pastorino committed Jan 20, 2011
1 parent 6bfef25 commit 4348a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classifier/lsi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def categories_for(item)
# Removes an item from the database, if it is indexed.
#
def remove_item( item )
if @items.keys.contain? item
if @items.keys.index item
@items.remove item
@version += 1
end
Expand Down

0 comments on commit 4348a0f

Please sign in to comment.