Sha256: b215fb4fcf2ade3847adfa02f0deb409eeb57fea8809e8d5e98f7c6ddbd78a81
Contents?: true
Size: 264 Bytes
Versions: 7
Compression:
Stored size: 264 Bytes
Contents
require "#{Rails.root}/app/jobs/test_job" class JobsController < ApplicationController def create # Queue job job_id = SecureRandom.uuid Resque.enqueue(Jobs::Test, job_id: job_id) # Return response render json: { job_id: job_id } end end
Version data entries
7 entries across 7 versions & 1 rubygems