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

rails/railtie: read adapter info without requiring an active DB conn #1224

Merged
merged 1 commit into from
May 13, 2022

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented May 12, 2022

Fixes #1222
(Airbrake Gem Attempts to Connect to Database in Databaseless App in Rails 6)

Good article:
https://www.bigbinary.com/blog/rails-6-changed-activerecord-base-configurations-result-to-an-object

We also add a guard that makes sure there's an ActiveRecord configuration
present (it can be that ActiveRecord is required but not configured; why? I have
no idea but it did happen to our customer and he's got no clue either).

Fixes #1222
(Airbrake Gem Attempts to Connect to Database in Databaseless App in Rails 6)

Good article:
https://www.bigbinary.com/blog/rails-6-changed-activerecord-base-configurations-result-to-an-object

We also add a guard that makes sure there's an ActiveRecord configuration
present (it can be that ActiveRecord is required but not configured; why? I have
no idea but it did happen to our customer and he's got no clue either).
@kyrylo kyrylo force-pushed the activerecord-fix branch from 98aa7ca to d4a2eff Compare May 13, 2022 09:43
@kyrylo kyrylo merged commit d16be72 into master May 13, 2022
@kyrylo kyrylo deleted the activerecord-fix branch May 13, 2022 09:44
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.

Airbrake Gem Attempts to Connect to Database in Databaseless App in Rails 6
1 participant