Skip to content

Commit

Permalink
FIX: active record base as per deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
benaitcheson committed Feb 18, 2025
1 parent 36f7f5a commit 24d2491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prosopite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_notifications
end

def fingerprint(query)
db_adapter = ActiveRecord::Base.connection.adapter_name.downcase
db_adapter = ActiveRecord::Base.lease_connection.adapter_name.downcase
if db_adapter.include?('mysql') || db_adapter.include?('trilogy')
mysql_fingerprint(query)
else
Expand Down

0 comments on commit 24d2491

Please sign in to comment.