Skip to content

Commit 67edef5

Browse files
authored
Merge pull request #126 from ashrocket/main
Gaurd against pre Rails 6 usage
2 parents 64191c2 + d0c3711 commit 67edef5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cypress-rails/manages_transactions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def gather_connections
6868
# need to share a connection pool so that the reading connection
6969
# can see data in the open transaction on the writing connection.
7070
def setup_shared_connection_pool
71+
return unless ActiveRecord::TestFixtures.respond_to?(:setup_shared_connection_pool)
7172
@legacy_saved_pool_configs ||= Hash.new { |hash, key| hash[key] = {} }
7273
@saved_pool_configs ||= Hash.new { |hash, key| hash[key] = {} }
7374

0 commit comments

Comments
 (0)