Method: ElasticArSync::Elastic::Worker::IndexWorker#perform
- Defined in:
- lib/elastic_ar_sync/elastic/worker/index_worker.rb
#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 |