Class: Workarea::IndexCategorization
- Inherits:
-
Object
- Object
- Workarea::IndexCategorization
- Includes:
- Sidekiq::CallbacksWorker, Sidekiq::Worker
- Defined in:
- app/workers/workarea/index_categorization.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.perform(category) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/workers/workarea/index_categorization.rb', line 11 def self.perform(category) Search::Storefront::Product.delete_category(category.id) return unless category.product_rules.present? Search::Storefront::Product.add_category(category) end |