aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r--actionpack/lib/action_controller/caching.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index 0b8fa2ea09..ae868e23ed 100644
--- a/actionpack/lib/action_controller/caching.rb
+++ b/actionpack/lib/action_controller/caching.rb
@@ -1,3 +1,4 @@
+require 'action_dispatch/caching/fragments'
require 'fileutils'
require 'uri'
@@ -26,10 +27,6 @@ module ActionController
extend ActiveSupport::Concern
extend ActiveSupport::Autoload
- eager_autoload do
- autoload :Fragments
- end
-
module ConfigMethods
def cache_store
config.cache_store
@@ -48,7 +45,7 @@ module ActionController
include AbstractController::Callbacks
include ConfigMethods
- include Fragments
+ include ActionDispatch::Caching::Fragments
included do
extend ConfigMethods