admin管理员组

文章数量:1405118

In a rails 7.2 app I am seeing the following deprecation warning:

DEPRECATION WARNING: `rails/console/app` has been deprecated and will be removed in Rails 8.0.
Please require `rails/console/methods` instead.
 (called from <main> at /Users/name/app/gems/railties-7.2.2.1/lib/rails/console/app.rb:3)
DEPRECATION WARNING: `rails/console/helpers` has been deprecated and will be removed in Rails 8.0.
Please require `rails/console/methods` instead.
 (called from <main> at /Users/name/.rvm/gems/ruby-3.3.7@app/gems/railties-7.2.2.1/lib/rails/console/helpers.rb:3)
Loading custom initializer /Users/chris/Sites/golf_mentor/config/initializers/console.rb
Loading development environment (Rails 7.2.2.1)

The rails 8.0 release notes imply I should remove occurrences of require "rails/console/app" or require "rails/console/helpers", but I do not have any occurrences of these in the app. How do I silence this deprecation warning?

本文标签: How do I suppress rails 80 39railsconsoleapp39 deprecation warningStack Overflow