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 using Rails 6 newest autloader zeitwerk I get following warning when starting rails tests:
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 block (2 levels) in included at /my_project_root/config/environment.rb:13)
I believed it's caused by the materialize initializer defined in engine.rb which references ActionController::Base.
The text was updated successfully, but these errors were encountered:
maxtilford
added a commit
to maxtilford/materialize-sass
that referenced
this issue
Jul 8, 2020
Including the gem in a Rails 6 app results in the following error message:
> 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.
This change uses ActiveSupport's onload hook in order to ensure that the materialize helpers are added to the *newly loaded* ActionController::Base, whenever a reload occurs.
Fixesmkhairi#192
When using Rails 6 newest autloader zeitwerk I get following warning when starting rails tests:
I believed it's caused by the materialize initializer defined in engine.rb which references ActionController::Base.
The text was updated successfully, but these errors were encountered: