1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24759 from vipulnsward/push-initilizer-to-end

Push action_view.collection_caching to be called towards the end
This commit is contained in:
Rafael França 2016-04-27 18:34:55 -03:00
commit da2dc68c86

View file

@ -37,10 +37,6 @@ module ActionView
end
end
initializer "action_view.collection_caching", after: "action_controller.set_configs" do |app|
PartialRenderer.collection_cache = app.config.action_controller.cache_store
end
initializer "action_view.per_request_digest_cache" do |app|
ActiveSupport.on_load(:action_view) do
if app.config.consider_all_requests_local
@ -55,6 +51,10 @@ module ActionView
end
end
initializer "action_view.collection_caching", after: "action_controller.set_configs" do |app|
PartialRenderer.collection_cache = app.config.action_controller.cache_store
end
rake_tasks do |app|
unless app.config.api_only
load "action_view/tasks/cache_digests.rake"