summaryrefslogtreecommitdiff
path: root/lib/gitlab/current_settings.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-26 12:46:02 +0100
committerRémy Coutable <remy@rymai.me>2017-01-27 16:16:55 +0100
commitc446cfcbae82b4bfa2987ddf2b4865b11230ca1b (patch)
treedc35089b8e0e2076a3547dd8a6415e4cce76cc9e /lib/gitlab/current_settings.rb
parente745e1aae0880d65b9e9bd3f7b3aeb0bfce1613b (diff)
downloadgitlab-ce-c446cfcbae82b4bfa2987ddf2b4865b11230ca1b.tar.gz
Move ApplicationSetting DEFAULTS to `.defaults` instead
This will avoid autoloading issues in the long term. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/gitlab/current_settings.rb')
-rw-r--r--lib/gitlab/current_settings.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/current_settings.rb b/lib/gitlab/current_settings.rb
index 4ebd48a3fc7..e20f5f6f514 100644
--- a/lib/gitlab/current_settings.rb
+++ b/lib/gitlab/current_settings.rb
@@ -30,7 +30,7 @@ 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
@@ -38,7 +38,7 @@ module Gitlab
end
def fake_application_settings
- OpenStruct.new(::ApplicationSetting::DEFAULTS)
+ OpenStruct.new(::ApplicationSetting.defaults)
end
private