Sha256: 555a099eb99abcabc073458a28adaa2550c3f8a33df556c455825598b03b2e43
Contents?: true
Size: 360 Bytes
Versions: 16
Compression:
Stored size: 360 Bytes
Contents
class ActiveRecord::Base mattr_accessor :shared_connection @@shared_connection = nil def self.connection @@shared_connection || retrieve_connection 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
16 entries across 16 versions & 4 rubygems