Class: Rack::Insight::RailsInfoPanel

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

Instance Attribute Summary

Attributes inherited from Panel

#request

Instance Method Summary collapse

Methods inherited from Panel

#after, #after_detect, #before, #bool_prop, #call, #camelized_name, #content_for_request, current_panel_file, excluded, file_index, from_file, #handle_error_for, #has_content?, #has_custom_probes?, has_table, #has_table?, #heading_for_request, inherited, #initialize, #inspect, #is_magic?, #is_probing?, #name, #panel_app, panel_exclusion, panel_mappings, #render, set_sub_class_template_root, #underscored_name

Methods included from Database::EigenClient

included

Methods included from Instrumentation::EigenClient

included

Methods included from Logging

logger, verbose, verbosity

Methods included from Instrumentation::Client

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

Methods included from Database::RequestDataClient

#count, #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 Rack::Insight::Panel

Instance Method Details

#contentObject



11
12
13
14
# File 'lib/rack/insight/panels/rails_info_panel.rb', line 11

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

#headingObject



6
7
8
9
# File 'lib/rack/insight/panels/rails_info_panel.rb', line 6

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