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

AO3-6611 Prevent autoloading in initialization #4634

Merged
merged 7 commits into from
Nov 20, 2023

Conversation

brianjaustin
Copy link
Member

Issue

https://otwarchive.atlassian.net/browse/AO3-6611

Purpose

Move initializers that try to autoload constants into after_initialize blocks. This silences the deprecation warning that will become an error in Rails 7 (https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#autoloading-during-initialization). We have other options if this doesn't seem like the right approach, but from what I saw, none of these need to be reloadable.

Credit

Brian Austin (they/he)

@brianjaustin brianjaustin changed the title AO3-6611: Prevent autoloading in initialization AO3-6611 Prevent autoloading in initialization Oct 30, 2023
@zz9pzza zz9pzza self-requested a review November 19, 2023 08:34
@sarken sarken merged commit 690e9c0 into otwcode:master Nov 20, 2023
25 checks passed
@brianjaustin brianjaustin deleted the AO3-6611-autoloading-inits branch December 21, 2023 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants