fixing this function that was not explicitly using the params

This commit is contained in:
Mike McCabe
2013-10-22 10:16:09 -04:00
parent b7c3b04c74
commit 3820b78066
+1 -1
View File
@@ -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