Class: AsyncResponse::ResponsesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/async_response/responses_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



12
13
14
15
# File 'app/controllers/async_response/responses_controller.rb', line 12

def destroy
  job.destroy
  redirect_to async_response.responses_path
end

#indexObject



4
5
6
# File 'app/controllers/async_response/responses_controller.rb', line 4

def index
  render locals: { jobs: jobs }
end

#showObject



8
9
10
# File 'app/controllers/async_response/responses_controller.rb', line 8

def show
  render json: job
end