Commit 87f7309c authored by Robert Speicher's avatar Robert Speicher

Merge branch 'zj-perf-bar-default-dev' into 'master'

Enable the performance bar in dev environments

Closes #40989

See merge request gitlab-org/gitlab-ce!15913
parents f15082fb b6bd77f5
...@@ -6,6 +6,7 @@ module WithPerformanceBar ...@@ -6,6 +6,7 @@ module WithPerformanceBar
end end
def peek_enabled? def peek_enabled?
return true if Rails.env.development?
return false unless Gitlab::PerformanceBar.enabled?(current_user) return false unless Gitlab::PerformanceBar.enabled?(current_user)
if RequestStore.active? if RequestStore.active?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment