Permalink
Browse files

Backing out of #2496. Comparing md5 checksums is in no way faster tha…

…n doing a direct compare. Benchmarks help.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d949948 commit 24b9d2fe7115362677ed940b9e6117b185c1c1b2 Marcel Molina committed Oct 8, 2005
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/lib/rails_generator/commands.rb
View
3 railties/lib/rails_generator/commands.rb
@@ -1,7 +1,6 @@
require 'delegate'
require 'optparse'
require 'fileutils'
-require 'digest/md5'
require 'erb'
module Rails
@@ -221,7 +220,7 @@ def identical?(source, destination, &block)
return false if File.directory? destination
source = block_given? ? File.open(source) {|sf| yield(sf)} : IO.read(source)
destination = IO.read(destination)
- Digest::MD5.hexdigest(source) == Digest::MD5.hexdigest(destination)
+ source == destination
end
# Generate a file for a Rails application using an ERuby template.

0 comments on commit 24b9d2f

Please sign in to comment.