aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-03 09:30:50 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-03 09:30:50 -0800
commit632995c3e8c3393e58483e7a7bfabe29e1dfbf76 (patch)
tree4bce1f22d8068b6415f441935fa956fceb6b9ba7 /railties
parent36e77fe0c2737f1fa60e5d642d8a87ad1c3f03fa (diff)
parent782687862092fd37f9ca7062028ee03b01a5dfc0 (diff)
downloadrails-632995c3e8c3393e58483e7a7bfabe29e1dfbf76.tar.gz
rails-632995c3e8c3393e58483e7a7bfabe29e1dfbf76.tar.bz2
rails-632995c3e8c3393e58483e7a7bfabe29e1dfbf76.zip
Merge pull request #4279 from lest/fix-log
do not rewrite log during application bootstrap
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/application/bootstrap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb
index 78d2e6c913..f96a7d1772 100644
--- a/railties/lib/rails/application/bootstrap.rb
+++ b/railties/lib/rails/application/bootstrap.rb
@@ -28,7 +28,7 @@ module Rails
FileUtils.mkdir_p File.dirname path
end
- f = File.open path, 'w'
+ f = File.open path, 'a'
f.binmode
f.sync = !Rails.env.production? # make sure every write flushes