Deprecation warning when using it with Zeitwerk/Rails 6
See original GitHub issueIssue Description
When I use effective_datatables with Zeitwerk/Rails 6 I’ll get the following error
DEPRECATION WARNING: Initialization autoloaded the constant ActsAsArchived.
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 ActsAsArchived, 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.
Any solution for this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Initialization autoloaded the constants..." but I can't figure out ...
Rails 6 Zeitwerk "DEPRECATION WARNING: Initialization autoloaded the constants..." but I can't figure out where? ; and ApplicationController.
Read more >Deprecation Warning with Rails 6.1 & Zeitwerk #30 - GitHub
We're seeing deprecation warnings while upgrading to Rails 6.1: DEPRECATION WARNING: Initialization autoloaded the constants ActionText:: ...
Read more >The Complete Guide for Deprecation Warnings in Rails
When it comes to production, the easiest way to discover deprecation warnings is by using a monitoring tool (like Honeybadger or Airbrake).
Read more >Upgrading Ruby on Rails
It is only soft-deprecated, which means that your code will not break at the moment and no deprecation warning will be displayed, but...
Read more >Feature #32938: Rails 6: Zeitwerk support - Redmine
DEPRECATION WARNING: Initialization autoloaded the constants ... 0007-Move-only-modules-and-classes-that-match-Zeitwerk-ru.patch · Magnifier ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay thanks for the info! I will dig into this in the next day or so 😃
On Tue., Aug. 11, 2020, 8:19 a.m. Vincent van Andel, < notifications@github.com> wrote:
Hmm, I just don’t receive the original error,
DEPRECATION WARNING: Initialization autoloaded the constant ActsAsArchived.
Any chance you could share a repo? I’d take another look at this