Skip to content

Commit

Permalink
Remove obsolete ConnectionPool#connection deprecation warning
Browse files Browse the repository at this point in the history
Replaced by a new deprecation warning introduced in rails#51349
  • Loading branch information
intrip committed Apr 4, 2024
1 parent d4c40b6 commit e235425
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,6 @@ def permanent_lease? # :nodoc:
end

def connection
ActiveRecord.deprecator.warn(<<~MSG)
ActiveRecord::ConnectionAdapters::ConnectionPool#connection is deprecated
and will be removed in Rails 7.3. Use #lease_connection instead.
MSG
lease_connection
end

Expand Down

0 comments on commit e235425

Please sign in to comment.