mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use AS::SafeBuffer#clone_empty for flushing the output_buffer
This commit is contained in:
parent
71b95bd954
commit
dcf0964d64
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ module ActionView
|
|||
def flush_output_buffer #:nodoc:
|
||||
if output_buffer && !output_buffer.empty?
|
||||
response.body_parts << output_buffer
|
||||
self.output_buffer = output_buffer[0,0]
|
||||
self.output_buffer = output_buffer.respond_to?(:clone_empty) ? output_buffer.clone_empty : output_buffer[0, 0]
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue