Merge pull request #1178 from joshk/ruby19_warning

Corrected a minor ruby19 variable name reuse warning
This commit is contained in:
José Valim
2011-05-20 22:31:44 -07:00

View File

@@ -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