Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Deprecation warning with Rails 6 #32

Open
Janfred opened this issue May 1, 2021 · 1 comment
Open

Deprecation warning with Rails 6 #32

Janfred opened this issue May 1, 2021 · 1 comment

Comments

@Janfred
Copy link

Janfred commented May 1, 2021

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
Copy link
Owner

Thanks for your reporting. I’m going to check it, when i have a time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants