提交 4266a612 编写于 作者: L Lachlan Sylvester

make the collection_caching initializer run after the Action Controller configs are setup

上级 791bdf6f
......@@ -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.
先完成此消息的编辑!
想要评论请 注册