Remove redundant code

This functionality is provided by transactional_capybara.
This commit is contained in:
Andrew Kvalheim 2020-04-05 07:59:29 -07:00
parent e709d080b4
commit 3aa32aebe8

View file

@ -1,14 +0,0 @@
# frozen_string_literal: true
module ActiveRecord
class Base
mattr_accessor :shared_connection
@@shared_connection = nil
def self.connection
@@shared_connection || retrieve_connection
end
end
end
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection