Class: RailsPulse::RequestsController

Inherits:
ApplicationController show all
Includes:
ChartTableConcern, TagFilterConcern
Defined in:
app/controllers/rails_pulse/requests_controller.rb

Constant Summary collapse

TIME_RANGE_OPTIONS =
[
  [ "Recent", "recent" ],
  [ "Custom Range", "custom" ]
].freeze

Instance Method Summary collapse

Methods inherited from ApplicationController

#set_global_filters, #set_pagination_limit

Instance Method Details

#indexObject



15
16
17
18
# File 'app/controllers/rails_pulse/requests_controller.rb', line 15

def index
  setup_metric_cards
  setup_chart_and_table_data
end

#showObject



20
21
22
# File 'app/controllers/rails_pulse/requests_controller.rb', line 20

def show
  @operation_timeline = RailsPulse::Requests::Charts::OperationsChart.new(@request.operations)
end