Class: ActiveInsights::RequestsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
# File 'app/controllers/active_insights/requests_controller.rb', line 5

def index
  @requests =
    base_request_scope.with_durations.select(:formatted_controller).
    group(:formatted_controller).sort_by(&:agony).reverse
end