Fix Carrierwave authenticate with MongoDB

This commit is contained in:
Manson Wang 2014-03-19 18:29:02 +08:00
parent 92d882703b
commit c8cef00b37
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ end
CarrierWave.configure do |config| CarrierWave.configure do |config|
config.grid_fs_database = db_config[Rails.env]['database'] config.grid_fs_database = db_config[Rails.env]['database']
config.grid_fs_username = db_config[Rails.env]['username']
config.grid_fs_password = db_config[Rails.env]['password']
config.grid_fs_host = db_config[Rails.env]['host'] config.grid_fs_host = db_config[Rails.env]['host']
config.grid_fs_port = db_config[Rails.env]['port'] config.grid_fs_port = db_config[Rails.env]['port']
config.storage = :grid_fs config.storage = :grid_fs