Skip to content

Commit

Permalink
Fix temp_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tenner committed Mar 10, 2009
1 parent 18ada4e commit 2709b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/num_fu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def write_to_temp_file(data)
def save_to_storage
if File.file?(@temp_path)
FileUtils.mkdir_p(File.dirname(full_filename))
File.cp(temp_path, full_filename)
File.cp(@temp_path, full_filename)
File.chmod(attachment_options[:chmod] || 0744, full_filename)
end
end
Expand Down Expand Up @@ -92,7 +92,7 @@ def write_to_temp_file(data, temp_base_name)
end

def set_size_from_temp_path
self.size = File.size(temp_path)
self.size = File.size(@temp_path)
end
end
end

0 comments on commit 2709b58

Please sign in to comment.