Class: ElasticArSync::Elastic::Worker::IndexWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/elastic_ar_sync/elastic/worker/index_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(klass, operation, record_id) ⇒ Object



5
6
7
8
# File 'lib/elastic_ar_sync/elastic/worker/index_worker.rb', line 5

def perform(klass, operation, record_id)
  Rails.logger.debug "[elasticsearch IndexWorker] operation: #{operation} #{klass} ID: #{record_id}"
  ElasticArSync::Elastic::Services::DocumentIndexer.new.index_document(klass, operation, record_id)
end