Enable the performance bar in dev environments

This commit is contained in:
Zeger-Jan van de Weg 2017-12-13 15:14:58 +01:00
parent 097b067844
commit b6bd77f5dd
No known key found for this signature in database
GPG Key ID: 65F6A8D64A88ABAC
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ module WithPerformanceBar
end
def peek_enabled?
return true if Rails.env.development?
return false unless Gitlab::PerformanceBar.enabled?(current_user)
if RequestStore.active?