]> git.openstreetmap.org Git - rails.git/commit
Allow models to load when the database is offline
authorTom Hughes <tom@compton.nu>
Thu, 5 Jan 2023 19:51:01 +0000 (19:51 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 5 Jan 2023 20:25:34 +0000 (20:25 +0000)
commit4a5d509adf6f5c13b42bcfbb70a9fe24245ea149
tree8e20881bceaecda822d76176250fe5c12fa06f55
parent52078b5d764b867c643728ed5839a2cfbd9c5a2c
Allow models to load when the database is offline

It used to be necessary to stop ActiveRecord loading because
it would immediately try and connect the database but with the
introduction of switchable database connections it now only connects
when a model is used for the first time.

Fixes #3858
config/application.rb