Class: Spree::Products::AutoMatchTaxonsJob
- Defined in:
- app/jobs/spree/products/auto_match_taxons_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(product_id) ⇒ Object
6 7 8 9 10 11 |
# File 'app/jobs/spree/products/auto_match_taxons_job.rb', line 6 def perform(product_id) product = Spree::Product.find_by(id: product_id) return unless product.present? Spree::Products::AutoMatchTaxons.call(product: product) end |