Class: SpreeCmCommissioner::LineItems::SyncEventDateJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/spree_cm_commissioner/line_items/sync_event_date_job.rb

Instance Method Summary collapse

Methods included from ApplicationJobDecorator

handle_deserialization_error, prepended

Instance Method Details

#perform(options = {}) ⇒ Object



4
5
6
7
# File 'app/jobs/spree_cm_commissioner/line_items/sync_event_date_job.rb', line 4

def perform(options = {})
  event = Spree::Taxon.event.find(options[:event_id])
  SpreeCmCommissioner::LineItems::SyncEventDate.call(event: event)
end