diff --git a/railties/lib/rails/console/app.rb b/railties/lib/rails/console/app.rb new file mode 100644 index 0000000000000..916601b033d2b --- /dev/null +++ b/railties/lib/rails/console/app.rb @@ -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" diff --git a/railties/lib/rails/console/helpers.rb b/railties/lib/rails/console/helpers.rb new file mode 100644 index 0000000000000..472f46dfe7730 --- /dev/null +++ b/railties/lib/rails/console/helpers.rb @@ -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"