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 00638f31d1
Add autoload hook for AbstractController::ActionNotFound
The error can be reproduced with

    require "bundler/setup"
    require "action_controller"

    AbstractController::ActionNotFound
2018-11-28 14:21:19 -05:00

27 lines
589 B
Ruby

# frozen_string_literal: true
require "action_pack"
require "active_support/rails"
require "active_support/i18n"
module AbstractController
extend ActiveSupport::Autoload
autoload :ActionNotFound, "abstract_controller/base"
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