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

Delay loading of Active Record #244

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

casperisfine
Copy link
Contributor

Referencing ActiveRecord::Base as soon as the gem is required cause Active Record being loaded earlier than it should and some Rails configurations not to take effect.

Ref: rails/rails#49827
Ref: mastodon/mastodon#28609

cc @ClearlyClaire @mjankowski

Referencing `ActiveRecord::Base` as soon as the gem is required
cause Active Record being loaded earlier than it should and
some Rails configurations not to take effect.

Ref: rails/rails#49827
Ref: mastodon/mastodon#28609
casperisfine pushed a commit to casperisfine/rails-settings-cached that referenced this pull request Jan 5, 2024
@casperisfine
Copy link
Contributor Author

May be superseeded by mastodon/mastodon#28618

@huacnlee huacnlee merged commit a9cfbd5 into huacnlee:main Oct 7, 2024
9 checks passed
@huacnlee
Copy link
Owner

huacnlee commented Oct 7, 2024

Thanks.

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

Successfully merging this pull request may close these issues.

3 participants