Sha256: e1a5e3dfbab378752caef0231d0fa85428c990441b809d43af875b7cf51d136c
Contents?: true
Size: 385 Bytes
Versions: 26
Compression:
Stored size: 385 Bytes
Contents
module ActiveRecord class Base mattr_accessor :shared_connection @@shared_connection = nil def self.connection @@shared_connection || retrieve_connection end end end # Forces all threads to share the same connection. This works on # Capybara because it starts the web server in a thread. ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
Version data entries
26 entries across 26 versions & 3 rubygems