diff options
Diffstat (limited to 'railties/builtin/rails_info/rails/info.rb')
-rw-r--r-- | railties/builtin/rails_info/rails/info.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/railties/builtin/rails_info/rails/info.rb b/railties/builtin/rails_info/rails/info.rb index 7b6f09ac69..0dd1c090c1 100644 --- a/railties/builtin/rails_info/rails/info.rb +++ b/railties/builtin/rails_info/rails/info.rb @@ -56,7 +56,12 @@ module Rails returning table = '<table>' do properties.each do |(name, value)| table << %(<tr><td class="name">#{CGI.escapeHTML(name.to_s)}</td>) - table << %(<td class="value">#{CGI.escapeHTML(value.to_s)}</td></tr>) + formatted_value = if value.kind_of?(Array) + "<ul>" + value.map { |v| "<li>#{CGI.escapeHTML(v.to_s)}</li>" }.join + "</ul>" + else + CGI.escapeHTML(value.to_s) + end + table << %(<td class="value">#{formatted_value}</td></tr>) end table << '</table>' end @@ -85,6 +90,10 @@ module Rails Gem::RubyGemsVersion end + property 'Rack version' do + ::Rack.release + end + # The Rails version. property 'Rails version' do Rails::VERSION::STRING @@ -98,6 +107,10 @@ module Rails end end + property 'Middleware' do + ActionController::Dispatcher.middleware.active.map(&:inspect) + end + # The Rails Git revision, if it's checked out into vendor/rails. property 'Edge Rails revision' do edge_rails_revision |