mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
806 stars 243 forks source link

Warning when using Rails 6 zeitwerk autoloading #192

Closed TheRPunkt closed 4 years ago

TheRPunkt commented 5 years ago

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.