Ruby on Rails umask

apps

#1

I’m trying to add the ability to upload image files in a Ruby on Rails project by using file_column (http://www.kanthak.net/opensource/file_column/). Unfortunately, all of the images that are uploaded (to public/project/image) are chmodded 600 and need to be 755. I’ve tried setting ENV[“umask”] ||= “0022” as well as File.umask(0022) in environment.rb and neither works.

Any ideas for how to fix this?