Class: RailsLiveDashboard::JobsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_live_dashboard/jobs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/rails_live_dashboard/jobs_controller.rb', line 3

def index
  @jobs = Job.order(created_at: :desc)
end

#showObject



7
8
9
10
# File 'app/controllers/rails_live_dashboard/jobs_controller.rb', line 7

def show
  @job = Job.find(params[:id])
  @queries = Query.where(batch_id: @job.batch_id)
end