Commit 5532ca79ffd78a7630b4d393965c936e08be3dc2
1 parent
ad006fd9
Exists in
master
and in
19 other branches
Fixed tests
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/searchkick/index.rb
... | ... | @@ -254,7 +254,7 @@ module Searchkick |
254 | 254 | scope = scope.search_import if scope.respond_to?(:search_import) |
255 | 255 | |
256 | 256 | if batch |
257 | - import_or_update scope.to_a, method_name, async, delete_missing, record_ids, scope.model | |
257 | + import_or_update scope.to_a, method_name, async, delete_missing, record_ids, scope.model_name.name.constantize | |
258 | 258 | Searchkick.redis.srem(batches_key, batch_id) if batch_id && Searchkick.redis |
259 | 259 | elsif full && async |
260 | 260 | if scope.respond_to?(:primary_key) | ... | ... |
lib/searchkick/process_queue_job.rb