From c8cef00b3714a8edbb6250be36c3ba13ca8d6301 Mon Sep 17 00:00:00 2001 From: Manson Wang Date: Wed, 19 Mar 2014 18:29:02 +0800 Subject: [PATCH] Fix Carrierwave authenticate with MongoDB --- config/initializers/carrierwave.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb index 2c46dd1..0644f82 100644 --- a/config/initializers/carrierwave.rb +++ b/config/initializers/carrierwave.rb @@ -6,6 +6,8 @@ end CarrierWave.configure do |config| 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_port = db_config[Rails.env]['port'] config.storage = :grid_fs