Merge branch 'rails5-verbose-query-logs' into 'master'

Rails5: Enable verbose query logs

See merge request gitlab-org/gitlab-ce!21231
This commit is contained in:
Robert Speicher 2018-08-16 22:44:16 +00:00
commit 46494f46a1
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: 'Rails5: Enable verbose query logs'
merge_request: 21231
author: Jasper Maes
type: other

View file

@ -47,7 +47,9 @@ module ActiveRecord
end
end
unless Gitlab.rails5?
if Rails.version.start_with?("5.2")
raise "Remove this monkey patch: #{__FILE__}"
else
prepend(VerboseQueryLogs) unless Rails.env.production?
end
end