diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-09-12 10:46:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 10:46:40 -0400 |
commit | ce1248a5b8944606e91edf1bc4f1f4962a4f658d (patch) | |
tree | f80a85ef9868212d9ad3b243f9233a7ebecb9e9d /activerecord/lib | |
parent | 3eb0406ef56dab8c8cd60378600a53e351de0053 (diff) | |
parent | 349db176d8283a5c16816b50a92b0b319b1b8b74 (diff) | |
download | rails-ce1248a5b8944606e91edf1bc4f1f4962a4f658d.tar.gz rails-ce1248a5b8944606e91edf1bc4f1f4962a4f658d.tar.bz2 rails-ce1248a5b8944606e91edf1bc4f1f4962a4f658d.zip |
Merge pull request #33856 from eileencodes/fix-query-cache-to-load-before-first-request
Fix query cache to load before first request
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index 47351588d3..b213754641 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -180,9 +180,7 @@ end_warning end initializer "active_record.set_executor_hooks" do - ActiveSupport.on_load(:active_record) do - ActiveRecord::QueryCache.install_executor_hooks - end + ActiveRecord::QueryCache.install_executor_hooks end initializer "active_record.add_watchable_files" do |app| |