mirror of
https://github.com/github/rails.git
synced 2026-02-10 06:04:55 -05:00
Eliminate nil from newly generated logfiles. References #2927.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Eliminate nil from newly generated logfiles. #2927 [Blair Zajac <blair@orcaware.com>]
|
||||
|
||||
* Update to Prototype 1.4.0_rc3. Closes #1893, #2505, #2550, #2748, #2783. [Sam Stephenson]
|
||||
|
||||
* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
|
||||
|
||||
@@ -192,7 +192,7 @@ module Rails
|
||||
if block_given?
|
||||
df.write(yield(sf))
|
||||
else
|
||||
line = sf.gets
|
||||
line = sf.gets || ''
|
||||
if file_options[:shebang]
|
||||
df.puts("#!#{file_options[:shebang]}")
|
||||
df.puts(line) if line !~ /^#!/
|
||||
|
||||
Reference in New Issue
Block a user