Class: RailsLiveDashboard::RequestsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @requests = Request.order(created_at: :desc)
end

#showObject



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

def show
  @request = Request.find(params[:id])
  @exceptions = Exception.where(batch_id: @request.batch_id)
  @queries = Query.where(batch_id: @request.batch_id)
end