Fixed #580 , exception when using phusion passenger, thanks yarishima42

This commit is contained in:
Hexagon 2010-11-27 12:53:37 +01:00
parent 894f112b75
commit 5a90cfd680

View file

@ -9,7 +9,7 @@ MongoMapper.connect ::Rails.env
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
MongoMapper.connection.connect_to_master if forked
MongoMapper.connection.connect if forked
end
end