Skip to content

Commit 5085daf

Browse files
committed
Remove deprecated find_cmd_and_exec console helper
1 parent e38dfb2 commit 5085daf

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

guides/source/7_2_release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Please refer to the [Changelog][railties] for detailed changes.
3232

3333
* Remove deprecated `Rails.config.enable_dependency_loading`.
3434

35+
* Remove deprecated `find_cmd_and_exec` console helper.
36+
3537
### Deprecations
3638

3739
### Notable changes

railties/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `find_cmd_and_exec` console helper.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated `Rails.config.enable_dependency_loading`.
26

37
*Rafael Mendonça França*

railties/lib/rails/commands/dbconsole/dbconsole_command.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ def configurations # :doc:
6161
ActiveRecord::Base.configurations = Rails.application.config.database_configuration
6262
ActiveRecord::Base.configurations
6363
end
64-
65-
def find_cmd_and_exec(commands, *args) # :doc:
66-
Rails.deprecator.warn(<<~MSG.squish)
67-
Rails::DBConsole#find_cmd_and_exec is deprecated and will be removed in Rails 7.2.
68-
Please use find_cmd_and_exec on the connection adapter class instead.
69-
MSG
70-
ActiveRecord::Base.lease_connection.find_cmd_and_exec(commands, *args)
71-
end
7264
end
7365

7466
module Command

0 commit comments

Comments
 (0)