Skip to content

Commit

Permalink
Fix valid_raw_connection check
Browse files Browse the repository at this point in the history
  • Loading branch information
rporrasluc committed Jan 10, 2024
1 parent adf1a4a commit 82bcc58
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 82bcc58

Please sign in to comment.