mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
12cc24a733
Hooking into `execute` and `exec_query` is problematic because some adapters like MySQL2 have `exec_query` call `execute` which forces QueryLogs to first check wether the comment was already applied. Using a prepended module is also a bit problematic because it means it has to be prepended to the "final" adapter classes but if the user application has a custom adapter that inherits from a built-in one, the built-in one no longer have QueryLogs working. So instead this PR introduce `ActiveRecord.query_transformers`, and the adpters are responsible for applying to transformers only once. |
||
---|---|---|
.. | ||
application | ||
command | ||
commands | ||
configuration | ||
engine | ||
fixtures | ||
generators | ||
isolation | ||
minitest | ||
railties | ||
test_unit | ||
abstract_unit.rb | ||
app_loader_test.rb | ||
backtrace_cleaner_test.rb | ||
code_statistics_calculator_test.rb | ||
code_statistics_test.rb | ||
console_helpers.rb | ||
engine_test.rb | ||
env_helpers.rb | ||
generators_test.rb | ||
initializable_test.rb | ||
json_params_parsing_test.rb | ||
path_generation_test.rb | ||
paths_test.rb | ||
rack_logger_test.rb | ||
rails_info_controller_test.rb | ||
rails_info_test.rb | ||
secrets_test.rb | ||
version_test.rb |