Class: Insight::RailsInfoPanel

Inherits:
Panel
  • Object
show all
Defined in:
lib/insight/panels/rails_info_panel.rb

Instance Attribute Summary

Attributes inherited from Panel

#request

Instance Method Summary collapse

Methods inherited from Panel

#after, #before, #call, #content_for_request, current_panel_file, excluded, file_index, from_file, #has_content?, #heading_for_request, inherited, #initialize, #panel_app, panel_exclusion, panel_mappings, #render

Methods included from Instrumentation::Client

#after_detect, #before_detect, #probe, #request_finish, #request_start

Methods included from Logging

logger

Methods included from Database::RequestDataClient

#key_sql_template, #retrieve, #store, #table_length, #table_setup

Methods included from Render

#compile, #compile!, #compiled_source, #method_name, #method_name_without_locals, #render_template, #signed_params

Constructor Details

This class inherits a constructor from Insight::Panel

Instance Method Details

#contentObject



13
14
15
16
# File 'lib/insight/panels/rails_info_panel.rb', line 13

def content
  return unless (defined?(Rails) && defined?(Rails::Info))
  render_template "panels/rails_info"
end

#headingObject



8
9
10
11
# File 'lib/insight/panels/rails_info_panel.rb', line 8

def heading
  return unless (defined?(Rails) && defined?(Rails::Info))
  "Rails #{Rails.version}"
end

#nameObject



4
5
6
# File 'lib/insight/panels/rails_info_panel.rb', line 4

def name
  "rails_info"
end