Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use AS::SafeBuffer#clone_empty for flushing the output_buffer

  • Loading branch information...
commit dcf0964d64903605c6dc9d2e149ca0e45bd2aea2 1 parent 71b95bd
@amatsuda amatsuda authored tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/capture_helper.rb
View
2  actionpack/lib/action_view/helpers/capture_helper.rb
@@ -215,7 +215,7 @@ def with_output_buffer(buf = nil) #:nodoc:
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
Please sign in to comment.
Something went wrong with that request. Please try again.