Skip to content
This repository
Browse code

corrected a minor ruby19 variable name reuse warning

  • Loading branch information...
commit c9b5d64ec4c0b04881149214a5bc7bc9a40df596 1 parent e4bcd5e
Josh Kalderimis authored May 21, 2011
6  activesupport/lib/active_support/buffered_logger.rb
@@ -56,9 +56,9 @@ def initialize(log, level = DEBUG)
56 56
     end
57 57
 
58 58
     def open_log(log, mode)
59  
-      open(log, mode).tap do |log|
60  
-        log.set_encoding(Encoding::BINARY) if log.respond_to?(:set_encoding)
61  
-        log.sync = true
  59
+      open(log, mode).tap do |open_log|
  60
+        open_log.set_encoding(Encoding::BINARY) if open_log.respond_to?(:set_encoding)
  61
+        open_log.sync = true
62 62
       end
63 63
     end
64 64
 

0 notes on commit c9b5d64

Please sign in to comment.
Something went wrong with that request. Please try again.