lib/pg_search/multisearch.rb in pg_search-2.1.4 vs lib/pg_search/multisearch.rb in pg_search-2.1.5

- old
+ new

@@ -5,10 +5,10 @@ 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 + PgSearch::Document.where(searchable_type: model.base_class.name).delete_all if clean_up Rebuilder.new(model).rebuild end end end