From c9b5d64ec4c0b04881149214a5bc7bc9a40df596 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Sat, 21 May 2011 01:27:35 -0400 Subject: corrected a minor ruby19 variable name reuse warning --- activesupport/lib/active_support/buffered_logger.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index b937d4c50d..2668087f57 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -56,9 +56,9 @@ module ActiveSupport end def open_log(log, mode) - open(log, mode).tap do |log| - log.set_encoding(Encoding::BINARY) if log.respond_to?(:set_encoding) - log.sync = true + open(log, mode).tap do |open_log| + open_log.set_encoding(Encoding::BINARY) if open_log.respond_to?(:set_encoding) + open_log.sync = true end end -- cgit v1.2.3