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

Remove dead code

This is leftover from when `render nothing: true` rendered blank string.
This commit is contained in:
Rafael Mendonça França 2015-10-28 01:39:23 -02:00
parent a887676004
commit 80c6b901d4

View file

@ -149,7 +149,6 @@ module ActionDispatch # :nodoc:
self.body, self.status = body, status
@blank = false
@cv = new_cond
@committed = false
@sending = false
@ -287,12 +286,8 @@ module ActionDispatch # :nodoc:
@stream.write string
end
EMPTY = " "
# Allows you to manually set or override the response body.
def body=(body)
@blank = true if body == EMPTY
if body.respond_to?(:to_path)
@stream = body
else