action_controller.rb 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. require 'abstract_controller'
  2. require 'action_dispatch'
  3. module ActionController
  4. extend ActiveSupport::Autoload
  5. autoload :Base
  6. autoload :Caching
  7. autoload :Metal
  8. autoload :Middleware
  9. autoload_under "metal" do
  10. autoload :Compatibility
  11. autoload :ConditionalGet
  12. autoload :Cookies
  13. autoload :DataStreaming
  14. autoload :Flash
  15. autoload :ForceSSL
  16. autoload :Head
  17. autoload :Helpers
  18. autoload :HideActions
  19. autoload :HttpAuthentication
  20. autoload :ImplicitRender
  21. autoload :Instrumentation
  22. autoload :MimeResponds
  23. autoload :ParamsWrapper
  24. autoload :RackDelegation
  25. autoload :Redirecting
  26. autoload :Renderers
  27. autoload :Rendering
  28. autoload :RequestForgeryProtection
  29. autoload :Rescue
  30. autoload :Responder
  31. autoload :SessionManagement
  32. autoload :Streaming
  33. autoload :Testing
  34. autoload :UrlFor
  35. end
  36. autoload :Integration, 'action_controller/deprecated/integration_test'
  37. autoload :IntegrationTest, 'action_controller/deprecated/integration_test'
  38. autoload :PerformanceTest, 'action_controller/deprecated/performance_test'
  39. autoload :UrlWriter, 'action_controller/deprecated'
  40. autoload :Routing, 'action_controller/deprecated'
  41. autoload :TestCase, 'action_controller/test_case'
  42. autoload :TemplateAssertions, 'action_controller/test_case'
  43. eager_autoload do
  44. autoload :RecordIdentifier
  45. end
  46. end
  47. # All of these simply register additional autoloads
  48. require 'action_view'
  49. require 'action_controller/vendor/html-scanner'
  50. # Common Active Support usage in Action Controller
  51. require 'active_support/concern'
  52. require 'active_support/core_ext/class/attribute_accessors'
  53. require 'active_support/core_ext/load_error'
  54. require 'active_support/core_ext/module/attr_internal'
  55. require 'active_support/core_ext/module/delegation'
  56. require 'active_support/core_ext/name_error'
  57. require 'active_support/core_ext/uri'
  58. require 'active_support/inflector'