summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-01-16 19:13:31 +0100
committerRémy Coutable <remy@rymai.me>2018-01-17 13:56:05 +0100
commit28d39447c39981565cd0cdfad63dab5e5126e524 (patch)
tree8663a412652f1cf9bbd3c1e407c7fa4cbd3cd499 /lib
parent612d2266253a37a4f56b053f4dc17dd4f351f0d6 (diff)
downloadgitlab-ce-28d39447c39981565cd0cdfad63dab5e5126e524.tar.gz
In development, allow the toggling of the performance bar
The performance bar is still displayed by default in development. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/performance_bar.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/performance_bar.rb b/lib/gitlab/performance_bar.rb
index e73245b82c1..e29e168fc5a 100644
--- a/lib/gitlab/performance_bar.rb
+++ b/lib/gitlab/performance_bar.rb
@@ -6,6 +6,7 @@ module Gitlab
EXPIRY_TIME = 5.minutes
def self.enabled?(user = nil)
+ return true if Rails.env.development?
return false unless user && allowed_group_id
allowed_user_ids.include?(user.id)