lib/pg_search/multisearch.rb in pg_search-1.0.4 vs lib/pg_search/multisearch.rb in pg_search-1.0.5
- old
+ new
@@ -1,9 +1,8 @@
require "pg_search/multisearch/rebuilder"
module PgSearch
module Multisearch
-
class << self
def rebuild(model, clean_up=true)
model.transaction do
PgSearch::Document.where(:searchable_type => model.base_class.name).delete_all if clean_up
Rebuilder.new(model).rebuild