Skip to content

Conversation

@thlacroix
Copy link

In the pghero initializer, we read the PgHero.config to check the time_zone. The default_config access some information via ActiveRecord::Base. This caused ActiveRecord::Base to be loaded too early (cf rails/rails#50133), and in this case we can simply avoid accessing it during initialization by just moving where we set the time_zone.

@ankane ankane closed this in 86458c6 Apr 8, 2025
@ankane
Copy link
Owner

ankane commented Apr 8, 2025

Hi @thlacroix, thanks for reporting and the PR. Pushed a minimal change in the commit above to address this.

@thlacroix
Copy link
Author

Thanks for the fix !

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.

2 participants