diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/builtin/rails_info/rails/info.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/railties/builtin/rails_info/rails/info.rb b/railties/builtin/rails_info/rails/info.rb index 90c9015fcf..5a496f6536 100644 --- a/railties/builtin/rails_info/rails/info.rb +++ b/railties/builtin/rails_info/rails/info.rb @@ -51,9 +51,12 @@ module Rails def to_s column_width = properties.names.map {|name| name.length}.max - ["About your application's environment", *properties.map do |property| - "%-#{column_width}s %s" % property - end] * "\n" + info = properties.map do |name, value| + value = value.join(", ") if value.is_a?(Array) + "%-#{column_width}s %s" % [name, value] + end + info.unshift "About your application's environment" + info * "\n" end alias inspect to_s |