Skip to content

Commit 46cd9f7

Browse files
Merge pull request rails#51839 from Shopify/keep-deprecated-files
Add app.rb and helpers.rb back for backward compatibility
2 parents 8150212 + 0b18cac commit 46cd9f7

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)