diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-08-01 14:23:41 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-08-01 14:26:11 +0200 |
commit | 2e06800bfdb1fa46602beffce6ea8fb282e8a29a (patch) | |
tree | a4f1700fdd92140a247a6076fe9b908ef87d16ca /config | |
parent | 8c6b85eca5e19ca676eaef156876614526176821 (diff) | |
download | gitlab-ce-2e06800bfdb1fa46602beffce6ea8fb282e8a29a.tar.gz |
Fix RequestProfiler::Middleware error when code is reloaded in developmentfix/request-profiler-middleware-error-on-reload
Closes #20452
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/request_profiler.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/request_profiler.rb b/config/initializers/request_profiler.rb index fb5a7b8372e..a9aa802681a 100644 --- a/config/initializers/request_profiler.rb +++ b/config/initializers/request_profiler.rb @@ -1,3 +1,5 @@ +require 'gitlab/request_profiler/middleware' + Rails.application.configure do |config| config.middleware.use(Gitlab::RequestProfiler::Middleware) end |