GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
Make files readable on upload
kneath (author)
Fri Jun 06 01:02:34 -0700 2008
commit  9576f738c9bb124f391c3e5ce8493e7f4de6a05d
tree    5142ebed863e35610f67bc8e89303d52a18a9960
parent  76a5a4b7e3e2062550ed2599e4d28e173b15c64a
...
34
35
36
 
37
38
39
...
34
35
36
37
38
39
40
0
@@ -34,6 +34,7 @@ class Campaign < ActiveRecord::Base
0
     FileUtils.mkdir_p(Merb.root / "public" / "advertisements")
0
     FileUtils.rm(Merb.root / "public" + self.filename) if File.exists?(Merb.root / "public" + self.filename) unless self.filename.nil?
0
     FileUtils.mv(tempfile_path, Merb.root / "public" + destination_path)
0
+ FileUtils.chmod 0666, Merb.root / "public" + destination_path
0
     # update the record
0
     self.filename = destination_path
0
     self.save

Comments

    No one has commented yet.