Class: Insight::RailsInfoPanel
- Defined in:
- lib/insight/panels/rails_info_panel.rb
Instance Attribute Summary
Attributes inherited from Panel
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
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
#content ⇒ Object
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 |
#heading ⇒ Object
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 |
#name ⇒ Object
4 5 6 |
# File 'lib/insight/panels/rails_info_panel.rb', line 4 def name "rails_info" end |