summaryrefslogtreecommitdiff
path: root/app/models/application_setting.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-10-30 15:01:37 +0100
committerRémy Coutable <remy@rymai.me>2017-10-30 16:13:15 +0100
commitd7942f223cd30c28933c65bb8efa0cb9277b808e (patch)
treeb7dc4c6bb5616549cc44ef5d4ab7feb4d9216703 /app/models/application_setting.rb
parent9a58468bee9a28d5762fb9f75e4d457552f943c8 (diff)
downloadgitlab-ce-d7942f223cd30c28933c65bb8efa0cb9277b808e.tar.gz
Allow to disable the Performance Bar and document the `p b` shortcut in its doc page
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r--app/models/application_setting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb
index f266e7db6da..5e16badabec 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -420,7 +420,7 @@ class ApplicationSetting < ActiveRecord::Base
# the enabling/disabling is `performance_bar_allowed_group_id`
# - If `enable` is false, we set `performance_bar_allowed_group_id` to `nil`
def performance_bar_enabled=(enable)
- return if enable
+ return if Gitlab::Utils.to_boolean(enable)
self.performance_bar_allowed_group_id = nil
end