mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move Abstract stuff to autoload
This commit is contained in:
parent
0c92a51dad
commit
72b365ece9
2 changed files with 14 additions and 5 deletions
8
actionpack/lib/action_controller/abstract.rb
Normal file
8
actionpack/lib/action_controller/abstract.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
module AbstractController
|
||||
autoload :Base, "action_controller/abstract/base"
|
||||
autoload :Callbacks, "action_controller/abstract/callbacks"
|
||||
autoload :Helpers, "action_controller/abstract/helpers"
|
||||
autoload :Layouts, "action_controller/abstract/layouts"
|
||||
autoload :Logger, "action_controller/abstract/logger"
|
||||
autoload :Renderer, "action_controller/abstract/renderer"
|
||||
end
|
|
@ -15,8 +15,9 @@ rescue LoadError
|
|||
# Debugging disabled. `gem install ruby-debug` to enable.
|
||||
end
|
||||
|
||||
require 'action_controller/abstract/base'
|
||||
require 'action_controller/abstract/renderer'
|
||||
require 'action_controller/abstract/layouts'
|
||||
require 'action_controller/abstract/callbacks'
|
||||
require 'action_controller/abstract/helpers'
|
||||
require 'action_controller/abstract'
|
||||
# require 'action_controller/abstract/base'
|
||||
# require 'action_controller/abstract/renderer'
|
||||
# require 'action_controller/abstract/layouts'
|
||||
# require 'action_controller/abstract/callbacks'
|
||||
# require 'action_controller/abstract/helpers'
|
Loading…
Reference in a new issue