From 40bff298898ed3e43c4cb82876680723f830c7c5 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 19 Dec 2007 09:40:58 +0000 Subject: Ruby 1.9 compat: join the buffer array explicitly rather than relying on to_s to flatten it git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/buffered_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index c854599e69..c56dccc1f7 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -90,7 +90,7 @@ module ActiveSupport end def flush - @log.write(@buffer.slice!(0..-1).to_s) unless @buffer.empty? + @log.write(@buffer.slice!(0..-1).join) unless @buffer.empty? end def close -- cgit v1.2.3