Permalink
Browse files

Clear AR connections when daemonizing in case one was used during rai…

…ls startup

[git-p4: depot-paths = "//src/ar_mailer/dev/": change = 5641]
  • Loading branch information...
1 parent e6906b9 commit f311c2c77752cdfafe4f385633d3a642ae2bc0e9 @drbrain drbrain committed Jan 29, 2010
Showing with 5 additions and 0 deletions.
  1. +4 −0 History.txt
  2. +1 −0 lib/action_mailer/ar_sendmail.rb
View
@@ -1,3 +1,7 @@
+=== 1.5.1
+
+* Clear ActiveRecord connections when daemonizing. Bug by Evan Petrie.
+
=== 1.5.0
* Added --pid-file option. See --help for details.
@@ -378,6 +378,7 @@ def self.run(args = ARGV)
if options[:Daemon] then
require 'webrick/server'
+ ActiveRecord::Base.clear_all_connections!
WEBrick::Daemon.start
end

0 comments on commit f311c2c

Please sign in to comment.