diff options
author | Rémy Coutable <remy@rymai.me> | 2018-01-16 21:13:31 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-17 15:56:05 +0300 |
commit | 28d39447c39981565cd0cdfad63dab5e5126e524 (patch) | |
tree | 8663a412652f1cf9bbd3c1e407c7fa4cbd3cd499 /lib/gitlab/performance_bar.rb | |
parent | 612d2266253a37a4f56b053f4dc17dd4f351f0d6 (diff) |
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/gitlab/performance_bar.rb')
-rw-r--r-- | lib/gitlab/performance_bar.rb | 1 |
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) |