This commit is contained in:
cktricky
2013-10-27 20:17:52 -04:00
9 changed files with 34 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class Benefits < ActiveRecord::Base
def self.make_backup(file, data_path, full_file_name)
if File.exists?(full_file_name)
system("cp #{full_file_name} #{data_path}/bak#{Time.now.to_i}_#{file.original_filename}")
system("cp #{full_file_name} #{data_path}/bak#{Time.now.to_i}_#{file.original_filename}")
end
rescue
end