Class: Rack::Bug::RailsInfoPanel

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

Instance Attribute Summary

Attributes inherited from Panel

#request

Instance Method Summary collapse

Methods inherited from Panel

#after, #before, #call, #has_content?, #initialize, #panel_app, #render

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::Bug::Panel

Instance Method Details

#contentObject



15
16
17
18
# File 'lib/rack/bug/panels/rails_info_panel.rb', line 15

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

#headingObject



10
11
12
13
# File 'lib/rack/bug/panels/rails_info_panel.rb', line 10

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

#nameObject



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

def name
  "rails_info"
end