提交 46494f46 编写于 作者: R Robert Speicher

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

Rails5: Enable verbose query logs

See merge request gitlab-org/gitlab-ce!21231
---
title: 'Rails5: Enable verbose query logs'
merge_request: 21231
author: Jasper Maes
type: other
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册