Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/settings.rb')
-rw-r--r--config/settings.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/settings.rb b/config/settings.rb
index 35c8ad72bcf..51d54817646 100644
--- a/config/settings.rb
+++ b/config/settings.rb
@@ -109,7 +109,11 @@ class Settings < Settingslogic
constant = modul.constants.find { |name| modul.const_get(name, false) == current }
value = constant.nil? ? default : modul.const_get(constant, false)
if current.is_a? String
- value = modul.const_get(current.upcase, false) rescue default
+ value = begin
+ modul.const_get(current.upcase, false)
+ rescue StandardError
+ default
+ end
end
value