lib/pallets/worker.rb in pallets-0.1.0 vs lib/pallets/worker.rb in pallets-0.2.0

- old
+ new

@@ -61,10 +61,10 @@ # point, just discard it backend.discard(job) return end - task_class = job_hash["class_name"].constantize + task_class = Pallets::Util.constantize(job_hash["class_name"]) task = task_class.new(job_hash["context"]) begin task.run rescue => ex handle_job_error(ex, job, job_hash)