Class: Merb::Orms::ActiveRecord::DisconnectBeforeFork

Inherits:
BootLoader
  • Object
show all
Defined in:
lib/merb_activerecord.rb

Class Method Summary collapse

Class Method Details

.runObject



28
29
30
31
# File 'lib/merb_activerecord.rb', line 28

def self.run      
  Merb.logger.debug "Disconnecting database connection before forking."
  ::ActiveRecord::Base.clear_active_connections!
end