You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under Rails 6, the gem adds the following deprecation warning:
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.
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
Please, check the "Autoloading and Reloading Constants" guide for solutions.
(called from <top (required)> at /Users/sunny/code/cults/config/environment.rb:7)
To Reproduce
Create a Rails 6.0.2.2 app:
rails new honeypot-captcha-rails-example
cd honeypot-captcha-rails-example
rails test
At this point there is no deprecation warning.
Add the gem:
echo"gem 'honeypot-captcha'">> Gemfile
bundle
spring stop
rails test
The "DEPRECATION WARNING" message appears.
The text was updated successfully, but these errors were encountered:
Describe the bug
Under Rails 6, the gem adds the following deprecation warning:
To Reproduce
Create a Rails
6.0.2.2
app:At this point there is no deprecation warning.
Add the gem:
The "DEPRECATION WARNING" message appears.
The text was updated successfully, but these errors were encountered: