module PgSearch::Multisearch
def rebuild(model, clean_up=true)
def rebuild(model, clean_up=true) model.transaction do PgSearch::Document.where(:searchable_type => model.name).delete_all if clean_up Rebuilder.new(model).rebuild end end
def rebuild(model, clean_up=true) model.transaction do PgSearch::Document.where(:searchable_type => model.name).delete_all if clean_up Rebuilder.new(model).rebuild end end