2010-01-29 15:16:01 +00:00
|
|
|
require 'abstract_controller'
|
|
|
|
require 'action_dispatch'
|
2009-12-03 04:01:01 +00:00
|
|
|
|
2008-11-23 22:35:13 +00:00
|
|
|
module ActionController
|
2009-12-03 04:01:01 +00:00
|
|
|
extend ActiveSupport::Autoload
|
2005-02-19 20:29:55 +00:00
|
|
|
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :Base
|
|
|
|
autoload :Caching
|
|
|
|
autoload :Metal
|
|
|
|
autoload :Middleware
|
2009-06-15 18:44:45 +00:00
|
|
|
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload_under "metal" do
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :Compatibility
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :ConditionalGet
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :Cookies
|
|
|
|
autoload :Flash
|
2011-03-27 19:05:14 +00:00
|
|
|
autoload :ForceSSL
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :Head
|
|
|
|
autoload :Helpers
|
|
|
|
autoload :HideActions
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :HttpAuthentication
|
2010-03-03 08:42:51 +00:00
|
|
|
autoload :ImplicitRender
|
2010-01-12 23:41:04 +00:00
|
|
|
autoload :Instrumentation
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :MimeResponds
|
|
|
|
autoload :RackDelegation
|
|
|
|
autoload :Redirecting
|
|
|
|
autoload :Renderers
|
2010-01-04 21:59:23 +00:00
|
|
|
autoload :Rendering
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :RequestForgeryProtection
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :Rescue
|
|
|
|
autoload :Responder
|
|
|
|
autoload :SessionManagement
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :Streaming
|
2010-01-04 21:59:23 +00:00
|
|
|
autoload :Testing
|
2010-02-25 23:05:10 +00:00
|
|
|
autoload :UrlFor
|
2009-12-13 01:41:58 +00:00
|
|
|
end
|
2008-11-23 22:35:13 +00:00
|
|
|
|
2010-09-25 17:03:10 +00:00
|
|
|
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'
|
2010-01-04 21:59:23 +00:00
|
|
|
autoload :TestCase, 'action_controller/test_case'
|
2009-12-03 04:01:01 +00:00
|
|
|
|
2009-12-22 23:27:37 +00:00
|
|
|
eager_autoload do
|
|
|
|
autoload :RecordIdentifier
|
2010-09-02 19:10:29 +00:00
|
|
|
|
|
|
|
# TODO: Don't autoload exceptions, setup explicit
|
|
|
|
# requires for files that need them
|
|
|
|
autoload_at "action_controller/metal/exceptions" do
|
|
|
|
autoload :ActionControllerError
|
|
|
|
autoload :RenderError
|
|
|
|
autoload :RoutingError
|
|
|
|
autoload :MethodNotAllowed
|
|
|
|
autoload :NotImplemented
|
|
|
|
autoload :UnknownController
|
|
|
|
autoload :MissingFile
|
|
|
|
autoload :RenderError
|
|
|
|
autoload :SessionOverflowError
|
|
|
|
autoload :UnknownHttpMethod
|
|
|
|
end
|
2009-12-03 04:01:01 +00:00
|
|
|
end
|
|
|
|
end
|
2008-11-25 16:38:20 +00:00
|
|
|
|
2009-12-03 04:01:01 +00:00
|
|
|
# All of these simply register additional autoloads
|
2009-08-31 19:49:59 +00:00
|
|
|
require 'action_view'
|
2009-12-03 04:01:01 +00:00
|
|
|
require 'action_controller/vendor/html-scanner'
|
2009-07-15 21:15:52 +00:00
|
|
|
|
2010-06-14 21:21:53 +00:00
|
|
|
# Common Active Support usage in Action Controller
|
2010-01-29 15:16:01 +00:00
|
|
|
require 'active_support/concern'
|
2009-07-15 21:15:52 +00:00
|
|
|
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'
|
2010-09-27 23:57:26 +00:00
|
|
|
require 'active_support/core_ext/uri'
|
2009-08-06 21:48:48 +00:00
|
|
|
require 'active_support/inflector'
|