Commit c1dcbde8edcf24f855f078454ccc2e0dfa1e936b

Authored by Andrew Kane
1 parent 90533f88

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,7 +61,7 @@ module Searchkick
61 if records.any? 61 if records.any?
62 if async 62 if async
63 Searchkick::BulkReindexJob.perform_later( 63 Searchkick::BulkReindexJob.perform_later(
64 - class_name: records.first.class.name, 64 + class_name: records.first.model_name.name,
65 record_ids: records.map(&:id), 65 record_ids: records.map(&:id),
66 index_name: index.name, 66 index_name: index.name,
67 method_name: method_name ? method_name.to_s : nil 67 method_name: method_name ? method_name.to_s : nil