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
When starting a Rails 6 app with the localeapp gem we get this 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.
These autoloaded constants have been unloaded.
Please, check the "Autoloading and Reloading Constants" guide for solutions.
(called from <top (required)> at /Users/rbates/code/envisage/config/environment.rb:5)
This is because localeapp calls ActionController::Base in an initializer. See rails/rails#36546 for details.
To fix this you can wrap calls to ActionController::Base in ActiveSupport.on_load(:action_controller) do block.
The text was updated successfully, but these errors were encountered:
When starting a Rails 6 app with the
localeapp
gem we get this warning:This is because
localeapp
callsActionController::Base
in an initializer. See rails/rails#36546 for details.To fix this you can wrap calls to
ActionController::Base
inActiveSupport.on_load(:action_controller) do
block.The text was updated successfully, but these errors were encountered: