Class: Railswatch::Widgets::RequestsTable
- Inherits:
-
Table
- Object
- Base
- Table
- Railswatch::Widgets::RequestsTable
show all
- Defined in:
- lib/railswatch/widgets/requests_table.rb
Instance Attribute Summary
Attributes inherited from Base
#datasource
Instance Method Summary
collapse
Methods inherited from Table
#auto_update_interval, #show_export?, #table_classes, #table_id, #to_partial_path
Methods inherited from Base
#initialize, #to_partial_path
Instance Method Details
#content_partial_path ⇒ Object
22
23
24
|
# File 'lib/railswatch/widgets/requests_table.rb', line 22
def content_partial_path
'railswatch/railswatch/requests_table_content'
end
|
#data ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/railswatch/widgets/requests_table.rb', line 10
def data
@data ||= Railswatch::Reports::RequestsReport.new(
datasource.db,
group: :controller_action_format,
sort: :count
).data
end
|
#empty_message ⇒ Object
18
19
20
|
# File 'lib/railswatch/widgets/requests_table.rb', line 18
def empty_message
'No requests recorded yet.'
end
|
#subtitle ⇒ Object
6
7
8
|
# File 'lib/railswatch/widgets/requests_table.rb', line 6
def subtitle
'Requests Analysis'
end
|