Permalink
Browse files

Document ActionDispatch::Response#body method

  • Loading branch information...
1 parent 3daa8e5 commit 7b1a58bbae4a479f947087165a3867aea576a53d @MattStopa MattStopa committed Jan 16, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_dispatch/http/response.rb
@@ -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 }

0 comments on commit 7b1a58b

Please sign in to comment.