Class: SpreeCmCommissioner::StateJob

Inherits:
ApplicationUniqueJob show all
Defined in:
app/jobs/spree_cm_commissioner/state_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(state_id) ⇒ Object



3
4
5
6
# File 'app/jobs/spree_cm_commissioner/state_job.rb', line 3

def perform(state_id)
  state = ::Spree::State.find_by(id: state_id)
  StateUpdater.call(state: state)
end