diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-21 01:27:35 -0400 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-21 01:27:35 -0400 |
commit | c9b5d64ec4c0b04881149214a5bc7bc9a40df596 (patch) | |
tree | 155cffab92352ad52fff8f26498a948443e7d090 | |
parent | e4bcd5e7eb21905f66a2eec06cab874a312b787a (diff) | |
download | rails-c9b5d64ec4c0b04881149214a5bc7bc9a40df596.tar.gz rails-c9b5d64ec4c0b04881149214a5bc7bc9a40df596.tar.bz2 rails-c9b5d64ec4c0b04881149214a5bc7bc9a40df596.zip |
corrected a minor ruby19 variable name reuse warning
-rw-r--r-- | activesupport/lib/active_support/buffered_logger.rb | 6 |
1 files 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 |