DEPRECATION WARNING: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper.
edooan opened this issue · 0 comments
edooan commented
In an API-Only Rails application
Add acts_as_api
to the Gemfile and run bundle install
Immediately run bundle exec rspec
the deprecation warning appears.
DEPRECATION WARNING: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper.
Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails.
Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload ActionText::ContentHelper, for example,
the expected changes won't be reflected in that stale Module object.
These autoloaded constants have been unloaded.
Please, check the "Autoloading and Reloading Constants" guide for solutions.
(called from <top (required)> at /config/environment.rb:5)
ruby '2.6.5'
'rails', '~> 6.0.2', '>= 6.0.2.2'