aboutsummaryrefslogtreecommitdiffstats
path: root/railties/builtin
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-05-16 12:28:25 -0700
committerYehuda Katz <wycats@gmail.com>2009-05-16 12:28:25 -0700
commit4fa871654dc6e591c08cbc53e7eac2e008056fee (patch)
tree8c243931cb5ac3f45e618fbc8c35a8d7994c3f6a /railties/builtin
parentdb1bf3650d7450811f5dfddc5c5163a70683e37a (diff)
downloadrails-4fa871654dc6e591c08cbc53e7eac2e008056fee.tar.gz
rails-4fa871654dc6e591c08cbc53e7eac2e008056fee.tar.bz2
rails-4fa871654dc6e591c08cbc53e7eac2e008056fee.zip
Get Railties passing again
Diffstat (limited to 'railties/builtin')
-rw-r--r--railties/builtin/rails_info/rails/info.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/railties/builtin/rails_info/rails/info.rb b/railties/builtin/rails_info/rails/info.rb
index 0dd1c090c1..fdacc469f5 100644
--- a/railties/builtin/rails_info/rails/info.rb
+++ b/railties/builtin/rails_info/rails/info.rb
@@ -1,9 +1,13 @@
+require "active_support/core_ext/object/misc"
+require "cgi"
+require "active_support/core_ext/cgi"
+
module Rails
module Info
mattr_accessor :properties
class << (@@properties = [])
def names
- map &:first
+ map {|val| val.first }
end
def value_for(property_name)
@@ -53,7 +57,7 @@ module Rails
alias inspect to_s
def to_html
- returning table = '<table>' do
+ (table = '<table>').tap do
properties.each do |(name, value)|
table << %(<tr><td class="name">#{CGI.escapeHTML(name.to_s)}</td>)
formatted_value = if value.kind_of?(Array)
@@ -108,7 +112,7 @@ module Rails
end
property 'Middleware' do
- ActionController::Dispatcher.middleware.active.map(&:inspect)
+ ActionController::Dispatcher.middleware.active.map {|middle| middle.inspect }
end
# The Rails Git revision, if it's checked out into vendor/rails.