Deprecation warning with Rails 6
Janfred opened this issue · 1 comments
Janfred commented
With Rails 6 the following deprecation warning is shown:
DEPRECATION WARNING: Initialization autoloaded the constant Approval::Mixins.
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 Approval::Mixins, for example,
the expected changes won't be reflected in that stale Module object.
This autoloaded constant has been unloaded.
Please, check the "Autoloading and Reloading Constants" guide for solutions.
I'm using rails 6.0.3.6 and approval 0.7.1
yhirano55 commented
Thanks for your reporting. I’m going to check it, when i have a time.