class ElasticArSync::Elastic::Worker::IndexWorker
Public Instance Methods
perform(klass, operation, record_id)
click to toggle source
# 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