Commit b015320420058f5781db04637d2b0c2fa5560796

Authored by Andrew Kane
1 parent 2c597b98

Improved code [skip ci]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/index.rb
... ... @@ -339,7 +339,7 @@ module Searchkick
339 339 end
340 340  
341 341 def reindex_records(object, mode: nil, refresh: false, **options)
342   - mode ||= Searchkick.callbacks_value || @options[:callbacks] || true
  342 + mode ||= Searchkick.callbacks_value || @options[:callbacks] || :inline
343 343 mode = :inline if mode == :bulk
344 344  
345 345 result = RecordIndexer.new(self).reindex(object, mode: mode, full: false, **options)
... ...