In lib/mongoid/config.rb
<pre>
def reconnect!(now = true)
if now
master.connection.connect
else
- We set a @reconnect flag so that #master knows to reconnect the next
- time the connection is accessed.
@reconnect = true
end
end
</pre>
In the recent releases mongoid already added support for multi-database connections. reconnect! should also reconnect other connections but now it only reconnect the Mongoid.master connection.