diff options
author | Rémy Coutable <remy@rymai.me> | 2017-10-30 17:01:37 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-30 18:13:15 +0300 |
commit | d7942f223cd30c28933c65bb8efa0cb9277b808e (patch) | |
tree | b7dc4c6bb5616549cc44ef5d4ab7feb4d9216703 /app/models/application_setting.rb | |
parent | 9a58468bee9a28d5762fb9f75e4d457552f943c8 (diff) |
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.rb | 2 |
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 |