aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/railtie.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-04-27 18:34:55 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-04-27 18:34:55 -0300
commitda2dc68c86d419a4db29feb6764a9200f71c45f1 (patch)
tree1d1ca6df7e0a9b907e20aefbaf273e465f734d8d /actionview/lib/action_view/railtie.rb
parentf7a986012a6099445e20b6414d253ee0fc039118 (diff)
parent31458a94a6ee5c96cbdcdaafc6720fe2dc459ed6 (diff)
downloadrails-da2dc68c86d419a4db29feb6764a9200f71c45f1.tar.gz
rails-da2dc68c86d419a4db29feb6764a9200f71c45f1.tar.bz2
rails-da2dc68c86d419a4db29feb6764a9200f71c45f1.zip
Merge pull request #24759 from vipulnsward/push-initilizer-to-end
Push action_view.collection_caching to be called towards the end
Diffstat (limited to 'actionview/lib/action_view/railtie.rb')
-rw-r--r--actionview/lib/action_view/railtie.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb
index 09ce693aff..c83614c89a 100644
--- a/actionview/lib/action_view/railtie.rb
+++ b/actionview/lib/action_view/railtie.rb
@@ -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"