From 02902e00ab9fc67812accf72d61847c65cd25615 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 18 Jan 2013 17:04:13 +0900 Subject: [PATCH] use tap with block parameter --- railties/lib/rails/info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/info.rb b/railties/lib/rails/info.rb index aacc1be2fc..592e74726e 100644 --- a/railties/lib/rails/info.rb +++ b/railties/lib/rails/info.rb @@ -46,7 +46,7 @@ module Rails alias inspect to_s def to_html - (table = '').tap do + '
'.tap do |table| properties.each do |(name, value)| table << %() formatted_value = if value.kind_of?(Array)
#{CGI.escapeHTML(name.to_s)}