Class: Workarea::IndexProductChildren
- Inherits:
-
Object
- Object
- Workarea::IndexProductChildren
- Includes:
- Sidekiq::CallbacksWorker, Sidekiq::Worker
- Defined in:
- app/workers/workarea/index_product_children.rb
Instance Method Summary collapse
Instance Method Details
#perform(id) ⇒ Object
16 17 18 19 |
# File 'app/workers/workarea/index_product_children.rb', line 16 def perform(id) product = Catalog::Product.find(id) rescue nil IndexProduct.perform(product) if product.present? end |