Sha256: 77196c971be7bebe3c4d7204718dd7bae94c43df2297ab3d80019dafb6d25700

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

class DummyController < ApplicationController
  def async_option_1
    job = AsyncRequest::Job.create_and_enqueue(WorkerWithoutErrors)
    render json: { token: job.token, url: async_request.job_url }, status: 202
  end

  def async_option_2
    job = AsyncRequest::Job.create_and_enqueue(WorkerWithoutErrors)
    render json: { token: job.token }, status: 202, location: async_request.job_url
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
async_request-1.0.0 spec/dummy/app/controllers/dummy_controller.rb