fixing a mistake
This commit is contained in:
@@ -10,7 +10,7 @@ class Benefits < ActiveRecord::Base
|
||||
make_backup(file, data_path, full_file_name) if backup == "true"
|
||||
end
|
||||
|
||||
def self.make_backup(*params)
|
||||
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}")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user