Update carrierwave
#{column}_identifier must be used to get the name of the file
This commit is contained in:
1 parent
1bbb197fba
commit
04f51f2d98
3 files changed
+17
-18
No files matched your search
@@ -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:]\.\-\+]/
|
||||
Reference in new issue
Block a user