diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index 9b8ca01ad22b05b2485404776da38dea0dcd398e..5f37992d778e04c8a84032e5acedc05093c10a9c 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/railties/lib/rails_generator/commands.rb @@ -307,7 +307,7 @@ def file(relative_source, relative_destination, file_options = {}) unless options[:pretend] if options[:svn] # If the file has been marked to be added - # but has not yet been checked in, revert and elete + # but has not yet been checked in, revert and delete if options[:svn][relative_destination] system("svn revert #{destination}") FileUtils.rm(destination) @@ -343,7 +343,7 @@ def directory(relative_path) unless options[:pretend] if options[:svn] # If the directory has been marked to be added - # but has not yet been checked in, revert and elete + # but has not yet been checked in, revert and delete if options[:svn][relative_path] system("svn revert #{path}") FileUtils.rmdir(path)