summaryrefslogtreecommitdiff
path: root/lib/gitlab/current_settings.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-01-21 00:37:04 +0000
committerStan Hu <stanhu@gmail.com>2017-01-21 00:37:04 +0000
commit8dbac708dcb34d3a0510e9ba65e64b9377c93d49 (patch)
tree37c78090c37584502c5a82c29c98fe3b70f42b46 /lib/gitlab/current_settings.rb
parentd6529dbb6af3fa671ce90f73fbc5a6d60fd469d5 (diff)
downloadgitlab-ce-8dbac708dcb34d3a0510e9ba65e64b9377c93d49.tar.gz
Revert "Merge branch 'backport-fix-load-error' into 'master'"
This reverts merge request !8671
Diffstat (limited to 'lib/gitlab/current_settings.rb')
-rw-r--r--lib/gitlab/current_settings.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/current_settings.rb b/lib/gitlab/current_settings.rb
index e20f5f6f514..c79e17b57ee 100644
--- a/lib/gitlab/current_settings.rb
+++ b/lib/gitlab/current_settings.rb
@@ -30,15 +30,15 @@ module Gitlab
end
def in_memory_application_settings
- @in_memory_application_settings ||= ::ApplicationSetting.new(::ApplicationSetting.defaults)
+ @in_memory_application_settings ||= ApplicationSetting.new(ApplicationSetting::DEFAULTS)
# In case migrations the application_settings table is not created yet,
# we fallback to a simple OpenStruct
- rescue ActiveRecord::StatementInvalid, ActiveRecord::UnknownAttributeError
+ rescue ActiveRecord::StatementInvalid
fake_application_settings
end
def fake_application_settings
- OpenStruct.new(::ApplicationSetting.defaults)
+ OpenStruct.new(ApplicationSetting::DEFAULTS)
end
private