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

update coding conventions in metal/live

This commit is contained in:
Francesco Rodriguez 2012-07-30 17:08:05 -05:00
parent f6068f1df7
commit 5906881c96

View file

@ -47,13 +47,13 @@ module ActionController # :nodoc:
def each
while str = @buf.pop
yield str
yield(str)
end
end
def close
super
@buf.push nil
@buf.push(nil)
end
end
@ -78,7 +78,7 @@ module ActionController # :nodoc:
end
def initialize(status = 200, header = {}, body = [])
header = Header.new self, header
header = Header.new(self, header)
super(status, header, body)
end
@ -89,11 +89,11 @@ module ActionController # :nodoc:
private
def build_buffer(response, body)
buf = Live::Buffer.new response
body.each { |part| buf.write part }
buf
end
def build_buffer(response, body)
buf = Live::Buffer.new(response)
body.each { |part| buf.write(part) }
buf
end
end
def process(name)