mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:51:08 +08:00
DEV: Add env to enable ActiveRecord query log tags (#17383)
This commit is contained in:

committed by
GitHub

parent
201228162c
commit
d9eab4bbbb
@ -266,6 +266,10 @@ module Discourse
|
|||||||
require 'rbtrace'
|
require 'rbtrace'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ENV['RAILS_QUERY_LOG_TAGS'] == "1"
|
||||||
|
config.active_record.query_log_tags_enabled = true
|
||||||
|
end
|
||||||
|
|
||||||
config.generators do |g|
|
config.generators do |g|
|
||||||
g.test_framework :rspec, fixture: false
|
g.test_framework :rspec, fixture: false
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user