mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
DEV: Add env to enable ActiveRecord query log tags (#17383)
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user