test/test_helper.rb in searchkick-2.0.2 vs test/test_helper.rb in searchkick-2.0.3
- old
+ new
@@ -370,10 +370,11 @@
class Animal
searchkick \
text_start: [:name],
suggest: [:name],
- index_name: -> { "#{name.tableize}-#{Date.today.year}" }
+ index_name: -> { "#{name.tableize}-#{Date.today.year}" },
+ callbacks: defined?(ActiveJob) ? :async : true
# wordnet: true
end
Product.searchkick_index.delete if Product.searchkick_index.exists?
Product.reindex