Class: ElasticArSync::Elastic::Worker::IndexWorker
- Inherits:
-
Object
- Object
- ElasticArSync::Elastic::Worker::IndexWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/elastic_ar_sync/elastic/worker/index_worker.rb
Instance Method Summary collapse
Instance Method Details
#perform(klass_str, operation, record_id) ⇒ Object
5 6 7 8 |
# File 'lib/elastic_ar_sync/elastic/worker/index_worker.rb', line 5 def perform(klass_str, operation, record_id) Rails.logger.debug "[elasticsearch IndexWorker] operation: #{operation} #{klass_str} ID: #{record_id}" ElasticArSync::Elastic::Services::DocumentIndexer.new.index_document(klass_str.constantize, operation, record_id) end |