DEV: Add env to enable ActiveRecord query log tags (#17383)

This commit is contained in:
Alan Guo Xiang Tan 2022-07-08 08:57:09 +08:00 committed by GitHub
parent 201228162c
commit d9eab4bbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,6 +266,10 @@ module Discourse
require 'rbtrace'
end
if ENV['RAILS_QUERY_LOG_TAGS'] == "1"
config.active_record.query_log_tags_enabled = true
end
config.generators do |g|
g.test_framework :rspec, fixture: false
end