Update carrierwave

#{column}_identifier must be used to get the name of the file
This commit is contained in:
chris2tof authored and Christophe Vilayphiou committed 2012-01-24 11:57:27 +08:00
1 parent 1bbb197fba
commit 04f51f2d98
3 files changed
+17 -18

No files matched your search

+3 -3
View File
@@ -1,5 +1,3 @@
#require 'carrierwave/orm/mongoid'
begin
db_config = YAML::load(File.read(File.join(Rails.root, "/config/mongoid.yml")))
rescue
@@ -12,4 +10,6 @@ CarrierWave.configure do |config|
config.grid_fs_port = db_config[Rails.env]['port']
config.storage = :grid_fs
config.grid_fs_access_url = "/gridfs"
end
end
CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:]\.\-\+]/