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.
This commit is contained in:
Kasper Timm Hansen 2016-04-27 22:24:28 +02:00
parent c1ad19c92f
commit 940124a226
1 changed files with 1 additions and 3 deletions

View File

@ -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|