From de201344e0e542b7d42b3247dae662232f9922b5 Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Thu, 26 Sep 2024 14:53:44 +0000 Subject: [PATCH] Refs #37825 - Make reloading work --- config/initializers/core_extensions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/core_extensions.rb b/config/initializers/core_extensions.rb index 3ae98c399e6..833a78b8710 100644 --- a/config/initializers/core_extensions.rb +++ b/config/initializers/core_extensions.rb @@ -14,7 +14,7 @@ def self.per_page # Foreman.in_rake? prevents the failure of db:migrate for postgresql # don't query settings table if in rake return 20 unless Foreman.settings.ready? - Setting[:entries_per_page] rescue 20 + Foreman.settings[:entries_per_page] rescue 20 end def self.audited(*args)