From 54c04f53fddc36d62a3d3d4125c9fe205138fc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Wed, 7 Jun 2017 21:45:03 +0200 Subject: Fix spec failures and add a feature flag for the performance bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- lib/gitlab/performance_bar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/performance_bar.rb') diff --git a/lib/gitlab/performance_bar.rb b/lib/gitlab/performance_bar.rb index 3324fec94d4..163a40ad306 100644 --- a/lib/gitlab/performance_bar.rb +++ b/lib/gitlab/performance_bar.rb @@ -1,7 +1,7 @@ module Gitlab module PerformanceBar def self.enabled? - ENV["PERFORMANCE_BAR"] == '1' + Feature.enabled?('gitlab_performance_bar') end end end -- cgit v1.2.1