lib/pg_search/multisearch.rb in pg_search-2.3.6 vs lib/pg_search/multisearch.rb in pg_search-2.3.7
- old
+ new
@@ -5,12 +5,14 @@
module PgSearch
module Multisearch
class << self
def rebuild(model, deprecated_clean_up = nil, clean_up: true, transactional: true)
unless deprecated_clean_up.nil?
- ActiveSupport::Deprecation.warn(
+ warn(
"pg_search 3.0 will no longer accept a boolean second argument to PgSearchMultisearch.rebuild, " \
- "use keyword argument `clean_up:` instead."
+ "use keyword argument `clean_up:` instead.",
+ category: :deprecated,
+ uplevel: 1
)
clean_up = deprecated_clean_up
end
if transactional