fix bug where non-multisite environment would run out of connections

This commit is contained in:
Sam
2013-05-20 00:22:31 +10:00
parent 5f7f87437c
commit ceddb6e0da
2 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ module Jobs
ActiveRecord::Base.connection_handler.clear_active_connections!
end
end
ensure
ActiveRecord::Base.connection_handler.clear_active_connections!
end
end
def self.enqueue(job_name, opts={})