Skip to content

Commit

Permalink
More documentation for ActionDispatch::Response
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
MattStopa committed Jan 16, 2013
1 parent 7b1a58b commit 0004ca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionpack/lib/action_dispatch/http/response.rb
Expand Up @@ -172,7 +172,8 @@ def to_path
stream.to_path stream.to_path
end end


# Returns the content of the response as a String. # Returns the content of the response as a String. This contains the contents
# of any calls to <tt>render</tt>.
def body def body
strings = [] strings = []
each { |part| strings << part.to_s } each { |part| strings << part.to_s }
Expand All @@ -181,6 +182,7 @@ def body


EMPTY = " " EMPTY = " "


# Allows you to set manually set or override the response body.
def body=(body) def body=(body)
@blank = true if body == EMPTY @blank = true if body == EMPTY


Expand Down

0 comments on commit 0004ca3

Please sign in to comment.