lib/pg_search/multisearch.rb in pg_search-0.7.8 vs lib/pg_search/multisearch.rb in pg_search-0.7.9

- old
+ new

@@ -4,10 +4,10 @@ module Multisearch class << self def rebuild(model, clean_up=true) model.transaction do - PgSearch::Document.where(:searchable_type => model.name).delete_all if clean_up + PgSearch::Document.where(:searchable_type => model.base_class.name).delete_all if clean_up Rebuilder.new(model).rebuild end end end