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

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

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

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

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

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

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

57
# Common Active Support usage in Action Controller
58
require 'active_support/concern'
59 60 61 62 63
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'
64
require 'active_support/core_ext/uri'
65
require 'active_support/inflector'