Class: Spree::Products::TouchTaxonsJob
- Defined in:
- app/jobs/spree/products/touch_taxons_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(taxon_ids, taxonomy_ids) ⇒ Object
6 7 8 9 10 |
# File 'app/jobs/spree/products/touch_taxons_job.rb', line 6 def perform(taxon_ids, taxonomy_ids) Spree::Taxon.where(id: taxon_ids).update_all(updated_at: Time.current) Spree::Taxonomy.where(id: taxonomy_ids).update_all(updated_at: Time.current) Spree::Taxons::TouchFeaturedSections.call(taxon_ids: taxon_ids) end |