Commit 8e7d7df63736ac0d66a83e07f19fa625ff6416ac

Authored by Andrew Kane
1 parent 4580fc1a

Don't forget search_import scope

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/searchkick/index.rb
... ... @@ -248,6 +248,7 @@ module Searchkick
248 248 end
249 249  
250 250 def import_batch(scope, method_name: nil, batch_id: nil)
  251 + scope = scope.search_import if scope.respond_to?(:search_import)
251 252 import_or_update scope.to_a, method_name
252 253 Searchkick.redis.srem(batches_key, batch_id) if batch_id && Searchkick.redis
253 254 end
... ...