Class: Elasticfusion::Jobs::ReindexJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Elasticfusion::Jobs::ReindexJob
- Defined in:
- lib/elasticfusion/jobs/reindex_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(model_class, id) ⇒ Object
7 8 9 |
# File 'lib/elasticfusion/jobs/reindex_job.rb', line 7 def perform(model_class, id) model_class.constantize.find(id).reindex_now end |