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

Ensure hair_trigger ActiveRecord settings run after app load #92

Merged
merged 1 commit into from
Jan 31, 2021
Merged

Ensure hair_trigger ActiveRecord settings run after app load #92

merged 1 commit into from
Jan 31, 2021

Conversation

dhnaranjo
Copy link
Contributor

This PR addresses the problem of ActiveRecord::Base being called prior to a Rails apps own initializers being loaded. It manifested specifically in an inability to set Rails.application.config.active_record.belongs_to_required_by_default = true during our Rails 5 upgrade.

The fix is basically cribbing this fix right here: ankane/ahoy#213 when the issue was seen in another gem.

@dhnaranjo dhnaranjo changed the title Ensure ActiveRecord settings run after app load Ensure hair_trigger ActiveRecord settings run after app load Dec 30, 2020
@jenseng jenseng merged commit b739785 into jenseng:master Jan 31, 2021
@jenseng
Copy link
Owner

jenseng commented Feb 1, 2021

released in v0.2.24

@dhnaranjo dhnaranjo deleted the load_after_app branch February 4, 2021 20:39
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.

None yet

2 participants