Skip to content

Commit

Permalink
Add app.rb and helpers.rb back
Browse files Browse the repository at this point in the history
Those files were removed in #51760, but gems like `console1984` depend
on these files for legacy Rails console command extensions.
So keeping files around is required for backward-compatibility.
  • Loading branch information
st0012 committed May 23, 2024
1 parent 213bdfe commit 0b18cac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions railties/lib/rails/console/app.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

ActiveSupport::Deprecation.new.warn(<<~MSG, caller_locations(0..1))
`rails/console/app.rb` has been deprecated and will be removed in Rails 8.0.
Please require `rails/console/methods.rb` instead.
MSG

require "rails/console/methods"
8 changes: 8 additions & 0 deletions railties/lib/rails/console/helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

ActiveSupport::Deprecation.new.warn(<<~MSG, caller_locations(0..1))
`rails/console/helpers.rb` has been deprecated and will be removed in Rails 8.0.
Please require `rails/console/methods.rb` instead.
MSG

require "rails/console/methods"

0 comments on commit 0b18cac

Please sign in to comment.