Skip to content

Commit

Permalink
Document ActionDispatch::Response#body method
Browse files Browse the repository at this point in the history
  • Loading branch information
MattStopa committed Jan 16, 2013
1 parent 3daa8e5 commit 7b1a58b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/lib/action_dispatch/http/response.rb
Expand Up @@ -172,6 +172,7 @@ def to_path
stream.to_path
end

# Returns the content of the response as a String.
def body
strings = []
each { |part| strings << part.to_s }
Expand Down

0 comments on commit 7b1a58b

Please sign in to comment.