1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/abstract_controller.rb
Rafael Mendonça França 40fa818580 Move Caching module to Abstract Controller
Abstract Controller is the common component between Action Mailer and
Action Controller so if we need to share the caching component it need
to be there.
2016-02-23 21:11:15 -03:00

24 lines
503 B
Ruby

require 'action_pack'
require 'active_support/rails'
require 'active_support/i18n'
module AbstractController
extend ActiveSupport::Autoload
autoload :Base
autoload :Caching
autoload :Callbacks
autoload :Collector
autoload :DoubleRenderError, "abstract_controller/rendering"
autoload :Helpers
autoload :Logger
autoload :Rendering
autoload :Translation
autoload :AssetPaths
autoload :UrlFor
def self.eager_load!
super
AbstractController::Caching.eager_load!
end
end