Skip to content

Commit

Permalink
Remove old deprecation warning
Browse files Browse the repository at this point in the history
The new deprecation warning has been introduced in
rails#51349 so this one is obsolete and it
also ignores `config.active_record.permanent_connection_checkout`
setting.
  • Loading branch information
intrip committed Apr 4, 2024
1 parent d4c40b6 commit b7512a0
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 b7512a0

Please sign in to comment.