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:
commit
da2dc68c86
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue