Permalink
Browse files

Merge pull request #5227 from arunagw/build_fix_3-1-stable

Build fix 3 1 stable
  • Loading branch information...
josevalim committed Mar 1, 2012
2 parents 0d7a507 + 63069ec commit 4c8679ec569df7c6748124ed9305c291d7a37c3b
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/lib/active_support/core_ext/file/atomic.rb
@@ -16,7 +16,8 @@ def self.atomic_write(file_name, temp_dir = Dir.tmpdir)
require 'tempfile' unless defined?(Tempfile)
require 'fileutils' unless defined?(FileUtils)
- temp_file = Tempfile.new(basename(file_name), temp_dir, :binmode => true)
+ temp_file = Tempfile.new(basename(file_name), temp_dir)
+ temp_file.binmode
yield temp_file
temp_file.close

0 comments on commit 4c8679e

Please sign in to comment.