mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #7204 from frodsan/update_conventions
Follow code conventions in metal/live
This commit is contained in:
commit
ddd804e818
1 changed files with 8 additions and 8 deletions
|
@ -47,13 +47,13 @@ module ActionController
|
|||
|
||||
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
|
|||
end
|
||||
|
||||
def initialize(status = 200, header = {}, body = [])
|
||||
header = Header.new self, header
|
||||
header = Header.new(self, header)
|
||||
super(status, header, body)
|
||||
end
|
||||
|
||||
|
@ -90,8 +90,8 @@ module ActionController
|
|||
private
|
||||
|
||||
def build_buffer(response, body)
|
||||
buf = Live::Buffer.new response
|
||||
body.each { |part| buf.write part }
|
||||
buf = Live::Buffer.new(response)
|
||||
body.each { |part| buf.write(part) }
|
||||
buf
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue