Update customer.rb

This commit is contained in:
2016-05-16 17:39:52 -04:00
parent 454613c1ba
commit 24f4e9ecf2

View File

@@ -133,7 +133,7 @@ class Customer < ActiveRecord::Base
private
def background(&block)
def self.background(&block)
Thread.new do
yield
ActiveRecord::Base.connection.close