From 8e7d7df63736ac0d66a83e07f19fa625ff6416ac Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 15 Jan 2017 12:35:43 -0800 Subject: [PATCH] Don't forget search_import scope --- lib/searchkick/index.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/searchkick/index.rb b/lib/searchkick/index.rb index 748cfff..137a83a 100644 --- a/lib/searchkick/index.rb +++ b/lib/searchkick/index.rb @@ -248,6 +248,7 @@ module Searchkick end def import_batch(scope, method_name: nil, batch_id: nil) + scope = scope.search_import if scope.respond_to?(:search_import) import_or_update scope.to_a, method_name Searchkick.redis.srem(batches_key, batch_id) if batch_id && Searchkick.redis end -- libgit2 0.21.0