1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Document ActionDispatch::Response#body method

This commit is contained in:
Matthew Stopa 2013-01-16 00:33:08 -07:00
parent 3daa8e51cc
commit 7b1a58bbae

View file

@ -172,6 +172,7 @@ module ActionDispatch # :nodoc:
stream.to_path
end
# Returns the content of the response as a String.
def body
strings = []
each { |part| strings << part.to_s }