提交 abff83e6 编写于 作者: K Kasper Timm Hansen

Merge pull request #24752 from lsylvester/collection_caching-after-set_configs

Ensure action_controller.cache_store is set up before configuring the collection_cache
......@@ -37,7 +37,7 @@ class Railtie < Rails::Railtie # :nodoc:
end
end
initializer "action_view.collection_caching" do |app|
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册