Skip to content

Commit 0b18cac

Browse files
committed
Add app.rb and helpers.rb back
Those files were removed in rails#51760, but gems like `console1984` depend on these files for legacy Rails console command extensions. So keeping files around is required for backward-compatibility.
1 parent 213bdfe commit 0b18cac

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

railties/lib/rails/console/app.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
ActiveSupport::Deprecation.new.warn(<<~MSG, caller_locations(0..1))
4+
`rails/console/app.rb` has been deprecated and will be removed in Rails 8.0.
5+
Please require `rails/console/methods.rb` instead.
6+
MSG
7+
8+
require "rails/console/methods"

railties/lib/rails/console/helpers.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
ActiveSupport::Deprecation.new.warn(<<~MSG, caller_locations(0..1))
4+
`rails/console/helpers.rb` has been deprecated and will be removed in Rails 8.0.
5+
Please require `rails/console/methods.rb` instead.
6+
MSG
7+
8+
require "rails/console/methods"

0 commit comments

Comments
 (0)