Sha256: 8d7ff72e69f6fdac090cc28ac1e713ae3e08a23ee79f9d2c6f79f400ffd66428

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

module RailsLiveDashboard
  class RequestsController < ApplicationController
    def index
      @requests = Request.order(created_at: :desc)
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_live_dashboard-0.2.0 app/controllers/rails_live_dashboard/requests_controller.rb
rails_live_dashboard-0.1.2 app/controllers/rails_live_dashboard/requests_controller.rb
rails_live_dashboard-0.1.1 app/controllers/rails_live_dashboard/requests_controller.rb
rails_live_dashboard-0.1.0 app/controllers/rails_live_dashboard/requests_controller.rb