Class: Railswatch::Widgets::CrashesTable

Inherits:
Table
  • Object
show all
Defined in:
lib/railswatch/widgets/crashes_table.rb

Instance Attribute Summary

Attributes inherited from Base

#datasource

Instance Method Summary collapse

Methods inherited from Table

#auto_update_interval, #show_export?, #table_id, #to_partial_path

Methods inherited from Base

#initialize, #to_partial_path

Constructor Details

This class inherits a constructor from Railswatch::Widgets::Base

Instance Method Details

#content_partial_pathObject



22
23
24
# File 'lib/railswatch/widgets/crashes_table.rb', line 22

def content_partial_path
  'railswatch/railswatch/crashes_table_content'
end

#dataObject



10
11
12
# File 'lib/railswatch/widgets/crashes_table.rb', line 10

def data
  @data ||= Railswatch::Reports::CrashReport.new(datasource.db).data
end

#empty_messageObject



14
15
16
# File 'lib/railswatch/widgets/crashes_table.rb', line 14

def empty_message
  'We are glad that this list is empty ;)'
end

#subtitleObject



6
7
8
# File 'lib/railswatch/widgets/crashes_table.rb', line 6

def subtitle
  'Crash Report'
end

#table_classesObject



18
19
20
# File 'lib/railswatch/widgets/crashes_table.rb', line 18

def table_classes
  'table is-fullwidth is-hoverable is-narrow'
end