Skip to content

Commit

Permalink
Merge pull request #517 from Shopify/rporrasluc/valid-raw-connection-…
Browse files Browse the repository at this point in the history
…private

Fix valid_raw_connection check
  • Loading branch information
rporrasluc authored Jan 10, 2024
2 parents adf1a4a + 82bcc58 commit e9b973a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/semian/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def reconnect
# - @raw_connection is for 7.0.x
# - @connection is for versions below 6.1.x and below
def client_connection
if respond_to?(:valid_raw_connection)
if respond_to?(:valid_raw_connection, true)
valid_raw_connection
elsif instance_variable_defined?(:@raw_connection)
@raw_connection
Expand Down

0 comments on commit e9b973a

Please sign in to comment.