1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
Jean Boussier 12cc24a733 Refactor ActiveRecord::QueryLogs hook point
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.
2021-08-25 14:25:42 +02:00
..
application Refactor ActiveRecord::QueryLogs hook point 2021-08-25 14:25:42 +02:00
command Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
commands Implement ActionMailbox incinerate in conductor 2021-06-24 15:35:56 -03:00
configuration
engine Remove all version checking for older Rubies in tests 2021-02-05 13:21:45 +09:00
fixtures Populate ARGV with Rails::Command.invoke args 2021-04-03 10:12:52 -05:00
generators Action Text installer should assume importmap for asset pipeline (#43011) 2021-08-13 14:43:06 +02:00
isolation Remove spring as a default installation option (#42997) 2021-08-12 12:31:18 +02:00
minitest
railties Convert many ActiveRecord::Base class variable into instance variables 2021-06-10 18:31:33 +02:00
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 Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
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