diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-04-27 22:24:28 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-04-27 22:24:28 +0200 |
commit | 940124a22676f51540402e538fff626ef73b1d99 (patch) | |
tree | d2fec0aae535af98c553f5f05cea7e27ff0df859 /actionview | |
parent | c1ad19c92fde1c3801a93b59003ba2b266e4128f (diff) | |
download | rails-940124a22676f51540402e538fff626ef73b1d99.tar.gz rails-940124a22676f51540402e538fff626ef73b1d99.tar.bz2 rails-940124a22676f51540402e538fff626ef73b1d99.zip |
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.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/railtie.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index 67c80d22d8..09ce693aff 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -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| |