mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +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'
|
||||
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
|
||||
|
Reference in New Issue
Block a user