Explicitly convert the buffer array to a string before writing to head off compatibility issues with outputs that don't fully quack like an IO.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2007-10-03 23:56:34 +00:00
parent d9dac76f53
commit f2d7e51da2

View File

@@ -91,7 +91,7 @@ module ActiveSupport
end
def flush
@log.write(@buffer.slice!(0..-1)) unless @buffer.empty?
@log.write(@buffer.slice!(0..-1).to_s) unless @buffer.empty?
end
def close