diff options
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/railtie.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index 67c80d22d8..09ce693aff 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -38,9 +38,7 @@ module ActionView end initializer "action_view.collection_caching", after: "action_controller.set_configs" do |app| - ActiveSupport.on_load(:action_controller) do - PartialRenderer.collection_cache = app.config.action_controller.cache_store - end + PartialRenderer.collection_cache = app.config.action_controller.cache_store end initializer "action_view.per_request_digest_cache" do |app| |