diff options
author | Carl Porth <badcarl@gmail.com> | 2008-05-27 14:21:01 -0700 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-02 03:28:02 +0100 |
commit | a81f16af31b28203a7c2c6cd89249a90487b7fe0 (patch) | |
tree | 40681518b1356e4c44618837a40cdd30f044af8a /railties | |
parent | 474d42538269a141687c7c66bef6575b4682b15d (diff) | |
download | rails-a81f16af31b28203a7c2c6cd89249a90487b7fe0.tar.gz rails-a81f16af31b28203a7c2c6cd89249a90487b7fe0.tar.bz2 rails-a81f16af31b28203a7c2c6cd89249a90487b7fe0.zip |
Ensure Rails::Generator quotes file names while generating diff. [#264 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails_generator/commands.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index 08ecbfb5cf..fb62ba6940 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/railties/lib/rails_generator/commands.rb @@ -88,7 +88,7 @@ module Rails Tempfile.open(File.basename(destination), File.dirname(dst)) do |temp| temp.write render_file(src, file_options, &block) temp.rewind - $stdout.puts `#{diff_cmd} #{dst} #{temp.path}` + $stdout.puts `#{diff_cmd} "#{dst}" "#{temp.path}"` end puts "retrying" raise 'retry diff' |