forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PoolConfig double-checks its connection class reference for reloading
Keeping a reference to the class caused subtle issues when combined with reloading in development. Now, we take care to try to re-acquire the class reference by constantizing its name. That lookup may fail in scenarios where classes are given names but are not assigned to a constant. In that case, the class can't/won't be reloaded, so we're not worried about it. Fixes rails#54343.
- Loading branch information
1 parent
2ca006f
commit f985f78
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters