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

This commit is contained in:
Lachlan Sylvester 2016-04-27 20:49:17 +10:00
parent 791bdf6fb3
commit 4266a61285
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module ActionView
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