From dafd5f46b16cd43dacdb33d050f3854c7b87dfd2 Mon Sep 17 00:00:00 2001 From: Zachary Belzer Date: Wed, 31 Mar 2010 01:54:24 +0800 Subject: [PATCH] Connect to master doesn't reauthenticate on our behalf --- lib/delayed/backend/mongo_mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delayed/backend/mongo_mapper.rb b/lib/delayed/backend/mongo_mapper.rb index a602f13ba..978188bac 100644 --- a/lib/delayed/backend/mongo_mapper.rb +++ b/lib/delayed/backend/mongo_mapper.rb @@ -43,7 +43,7 @@ def self.before_fork end def self.after_fork - ::MongoMapper.connection.connect_to_master + ::MongoMapper.connect(RAILS_ENV) end def self.db_time_now