aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-03 23:56:34 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-03 23:56:34 +0000
commitf2d7e51da27f0ae29a8d190640d6dd899e2bcc8b (patch)
treed83c04e1d00efc71ee1c0632d644166fc7377a81 /activesupport/lib
parentd9dac76f53ab95776ffd10d997f4a7b6d41eed32 (diff)
downloadrails-f2d7e51da27f0ae29a8d190640d6dd899e2bcc8b.tar.gz
rails-f2d7e51da27f0ae29a8d190640d6dd899e2bcc8b.tar.bz2
rails-f2d7e51da27f0ae29a8d190640d6dd899e2bcc8b.zip
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
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/buffered_logger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb
index fad47b0e9b..08e71e5b8c 100644
--- a/activesupport/lib/active_support/buffered_logger.rb
+++ b/activesupport/lib/active_support/buffered_logger.rb
@@ -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