diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails_generator/commands.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index aa9bc677ef..2da82f545d 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/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 @@ module Rails 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. |