Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
railties/active_record: read 'adapter' without requiring a DB conn
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).
- Loading branch information