Class: Spree::Variants::TouchJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/spree/variants/touch_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(variant_ids) ⇒ Object



4
5
6
# File 'app/jobs/spree/variants/touch_job.rb', line 4

def perform(variant_ids)
  Spree::Variant.where(id: variant_ids).find_each(&:touch)
end