aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/buffered_logger.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-19 09:40:58 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-19 09:40:58 +0000
commit40bff298898ed3e43c4cb82876680723f830c7c5 (patch)
tree0937785a0f5388cf1e366c3e56b8e34e674187a8 /activesupport/lib/active_support/buffered_logger.rb
parentb4e3b5d41806c20ea29e401ebb613a7db3d44aa8 (diff)
downloadrails-40bff298898ed3e43c4cb82876680723f830c7c5.tar.gz
rails-40bff298898ed3e43c4cb82876680723f830c7c5.tar.bz2
rails-40bff298898ed3e43c4cb82876680723f830c7c5.zip
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
Diffstat (limited to 'activesupport/lib/active_support/buffered_logger.rb')
-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 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