Fix Carrierwave authenticate with MongoDB
This commit is contained in:
parent
92d882703b
commit
c8cef00b37
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue