mirror of https://github.com/rails/rails
Properly show middlewares on rake about.
This commit is contained in:
parent
622e3dda84
commit
391f2543c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue