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

Respect gospel of Railties Gods: no on_load with after.

We don't need no stinking `on_load` where we're going! Because
people far wiser than me (@rafaelfranca and @jeremy) know that
passing `:after` means the lib is already loaded.
上级 c1ad19c9
......@@ -38,9 +38,7 @@ class Railtie < Rails::Railtie # :nodoc:
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|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册