action_controller.rb 1.9 KB
Newer Older
1 2
require 'abstract_controller'
require 'action_dispatch'
3
require 'action_controller/metal/live'
C
Carlhuda 已提交
4

5
module ActionController
C
Carlhuda 已提交
6
  extend ActiveSupport::Autoload
7

J
Joshua Peek 已提交
8 9 10 11
  autoload :Base
  autoload :Caching
  autoload :Metal
  autoload :Middleware
12

J
Joshua Peek 已提交
13
  autoload_under "metal" do
14
    autoload :Compatibility
J
Joshua Peek 已提交
15
    autoload :ConditionalGet
16
    autoload :Cookies
J
José Valim 已提交
17
    autoload :DataStreaming
18
    autoload :Flash
19
    autoload :ForceSSL
J
Joshua Peek 已提交
20 21 22
    autoload :Head
    autoload :Helpers
    autoload :HideActions
23
    autoload :HttpAuthentication
24
    autoload :ImplicitRender
25
    autoload :Instrumentation
J
Joshua Peek 已提交
26
    autoload :MimeResponds
27
    autoload :ParamsWrapper
J
Joshua Peek 已提交
28 29 30
    autoload :RackDelegation
    autoload :Redirecting
    autoload :Renderers
31
    autoload :Rendering
32
    autoload :RequestForgeryProtection
J
Joshua Peek 已提交
33 34
    autoload :Rescue
    autoload :Responder
35
    autoload :Streaming
36
    autoload :Testing
37
    autoload :UrlFor
38
  end
39

40 41 42 43 44 45
  autoload :Integration,        'action_controller/deprecated/integration_test'
  autoload :IntegrationTest,    'action_controller/deprecated/integration_test'
  autoload :PerformanceTest,    'action_controller/deprecated/performance_test'
  autoload :Routing,            'action_controller/deprecated'
  autoload :TestCase,           'action_controller/test_case'
  autoload :TemplateAssertions, 'action_controller/test_case'
C
Carlhuda 已提交
46

J
Joshua Peek 已提交
47 48
  eager_autoload do
    autoload :RecordIdentifier
C
Carlhuda 已提交
49 50
  end
end
51

C
Carlhuda 已提交
52
# All of these simply register additional autoloads
53
require 'action_view'
C
Carlhuda 已提交
54
require 'action_controller/vendor/html-scanner'
55

56
# Common Active Support usage in Action Controller
57
require 'active_support/concern'
58 59 60 61 62
require 'active_support/core_ext/class/attribute_accessors'
require 'active_support/core_ext/load_error'
require 'active_support/core_ext/module/attr_internal'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/name_error'
63
require 'active_support/core_ext/uri'
64
require 'active_support/inflector'