Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 6 Task: Deprecation Warning: Initialization autoloaded constants #4095

Open
yuenmichelle1 opened this issue Jan 26, 2023 · 0 comments
Open
Labels
Rails Upgrade Tasks Rails Upgrade Tasks

Comments

@yuenmichelle1
Copy link
Collaborator

DEPRECATION WARNING: Initialization autoloaded the constants Configurable, DesignatorClient, RedirectUriValidator, Serialization, Serialization::PanoptesRestpack, CachedSerializer, ACLSerializer, NoCountSerializer, FilterHasMany, OwnerLinkSerializer, EventStreamSerializers::ProjectSerializer, EventStreamSerializers::UserSerializer, EventStreamSerializers::WorkflowSerializer, EventStreamSerializers::SubjectSerializer, Refinements, Refinements::RangeClamping, TasksVisitor, MediaStorage::AbstractAdapter, and TalkApiClient.

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 Configurable, for example,
the expected changes won't be reflected in that stale Module object.

`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.

Please, check the "Autoloading and Reloading Constants" guide for solutions.
 (called from <top (required)> at /rails_app/config/environment.rb:5)
A server is already running. Check /rails_app/tmp/pids/server.pid. 
@yuenmichelle1 yuenmichelle1 added the Rails Upgrade Tasks Rails Upgrade Tasks label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rails Upgrade Tasks Rails Upgrade Tasks
Projects
None yet
Development

No branches or pull requests

1 participant