summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Lee <huacnlee@gmail.com>2016-01-21 16:01:13 +0800
committerRémy Coutable <remy@rymai.me>2016-02-08 15:28:48 +0100
commite4d276816ab688b1f2af6842e71fe6bfc3036739 (patch)
tree4ed37fda5ffd3618e7aca05ba9f0d9706407b8cb
parent9fdd605fd2e4550170e5ef088bec7c6d2585c4a5 (diff)
downloadgitlab-ce-huacnlee/current-settings-autoload-bug-in-development.tar.gz
Fix CurrentSettings autoload bug in development.huacnlee/current-settings-autoload-bug-in-development
Error: A copy of Gitlab::CurrentSettings has been removed from the module tree but is still active
-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 8531c7e87e1..761b63e98f6 100644
--- a/lib/gitlab/current_settings.rb
+++ b/lib/gitlab/current_settings.rb
@@ -7,8 +7,8 @@ module Gitlab
settings = nil
if connect_to_db?
- settings = ApplicationSetting.current
- settings ||= ApplicationSetting.create_from_defaults unless ActiveRecord::Migrator.needs_migration?
+ settings = ::ApplicationSetting.current
+ settings ||= ::ApplicationSetting.create_from_defaults unless ActiveRecord::Migrator.needs_migration?
end
settings || fake_application_settings