Skip to content

Commit 7fc6dd6

Browse files
committed
Simplifies page_caching.rb
There is an explicit require for action_controller/caching/pages.rb so there is no need for ActiveSupport::Autoload idioms here.
1 parent 92e5577 commit 7fc6dd6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/action_controller/page_caching.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22

33
module ActionController
44
module Caching
5-
eager_autoload do
6-
autoload :Pages
7-
end
8-
95
include Pages
106
end
117
end
128

13-
ActionController::Base.send(:include, ActionController::Caching::Pages)
9+
ActionController::Base.include(ActionController::Caching::Pages)

0 commit comments

Comments
 (0)