Commit c1dcbde8edcf24f855f078454ccc2e0dfa1e936b
1 parent
90533f88
Exists in
master
and in
17 other branches
Use model name for consistency
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/bulk_indexer.rb
... | ... | @@ -61,7 +61,7 @@ module Searchkick |
61 | 61 | if records.any? |
62 | 62 | if async |
63 | 63 | Searchkick::BulkReindexJob.perform_later( |
64 | - class_name: records.first.class.name, | |
64 | + class_name: records.first.model_name.name, | |
65 | 65 | record_ids: records.map(&:id), |
66 | 66 | index_name: index.name, |
67 | 67 | method_name: method_name ? method_name.to_s : nil | ... | ... |