From 23fa0395d8d6b0365421b5dea9e5620b95c6b15c Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Wed, 29 Mar 2006 15:11:47 +0000 Subject: Fix Rails info controller for postgres; Closes #4469. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/builtin/rails_info/rails/info.rb | 4 ++-- railties/builtin/rails_info/rails/info_controller.rb | 16 +++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'railties/builtin') diff --git a/railties/builtin/rails_info/rails/info.rb b/railties/builtin/rails_info/rails/info.rb index 9ded9e0649..5f8e01c1c3 100644 --- a/railties/builtin/rails_info/rails/info.rb +++ b/railties/builtin/rails_info/rails/info.rb @@ -51,8 +51,8 @@ module Rails def to_html returning table = '' do properties.each do |(name, value)| - table << %() - table << %() + table << %() + table << %() end table << '
#{CGI.escapeHTML(name)}#{CGI.escapeHTML(value)}
#{CGI.escapeHTML(name.to_s)}#{CGI.escapeHTML(value.to_s)}
' end diff --git a/railties/builtin/rails_info/rails/info_controller.rb b/railties/builtin/rails_info/rails/info_controller.rb index 7534447043..39f8b1f120 100644 --- a/railties/builtin/rails_info/rails/info_controller.rb +++ b/railties/builtin/rails_info/rails/info_controller.rb @@ -1,11 +1,9 @@ -module Rails - class InfoController < ActionController::Base - def properties - if local_request? - render :inline => Rails::Info.to_html - else - render :text => '

For security purposes, this information is only available to local requests.

', :status => 500 - end +class Rails::InfoController < ActionController::Base + def properties + if local_request? + render :inline => Rails::Info.to_html + else + render :text => '

For security purposes, this information is only available to local requests.

', :status => 500 end end -end \ No newline at end of file +end -- cgit v1.2.3