2009-12-16 12:56:51 -05:00
|
|
|
activesupport_path = File.expand_path('../../../activesupport/lib', __FILE__)
|
|
|
|
$:.unshift(activesupport_path) if File.directory?(activesupport_path) && !$:.include?(activesupport_path)
|
2009-12-20 17:06:40 -05:00
|
|
|
require 'active_support/ruby/shim'
|
2009-12-02 23:01:01 -05:00
|
|
|
|
2008-11-23 17:35:13 -05:00
|
|
|
module ActionController
|
2009-12-02 23:01:01 -05:00
|
|
|
extend ActiveSupport::Autoload
|
2005-02-19 15:29:55 -05:00
|
|
|
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :Base
|
|
|
|
autoload :Caching
|
|
|
|
autoload :PolymorphicRoutes
|
|
|
|
autoload :Translation
|
|
|
|
autoload :Metal
|
|
|
|
autoload :Middleware
|
2009-06-15 14:44:45 -04:00
|
|
|
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload_under "metal" do
|
2009-12-30 19:35:50 -05:00
|
|
|
autoload :Compatibility
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :ConditionalGet
|
|
|
|
autoload :Configuration
|
2009-12-30 19:35:50 -05:00
|
|
|
autoload :Cookies
|
|
|
|
autoload :FilterParameterLogging
|
|
|
|
autoload :Flash
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :Head
|
|
|
|
autoload :Helpers
|
|
|
|
autoload :HideActions
|
2009-12-30 19:35:50 -05:00
|
|
|
autoload :HttpAuthentication
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :Logger
|
|
|
|
autoload :MimeResponds
|
|
|
|
autoload :RackDelegation
|
|
|
|
autoload :Redirecting
|
|
|
|
autoload :Renderers
|
2010-01-04 16:59:23 -05:00
|
|
|
autoload :Rendering
|
2009-12-30 19:35:50 -05:00
|
|
|
autoload :RequestForgeryProtection
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :Rescue
|
|
|
|
autoload :Responder
|
|
|
|
autoload :SessionManagement
|
2009-12-30 19:35:50 -05:00
|
|
|
autoload :Streaming
|
2010-01-04 16:59:23 -05:00
|
|
|
autoload :Testing
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :UrlFor
|
|
|
|
autoload :Verification
|
2009-12-12 20:41:58 -05:00
|
|
|
end
|
2008-11-23 17:35:13 -05:00
|
|
|
|
2009-12-22 18:27:37 -05:00
|
|
|
autoload :Dispatcher, 'action_controller/dispatch/dispatcher'
|
|
|
|
autoload :Integration, 'action_controller/deprecated/integration_test'
|
|
|
|
autoload :IntegrationTest, 'action_controller/deprecated/integration_test'
|
2010-01-04 16:59:23 -05:00
|
|
|
autoload :PerformanceTest, 'action_controller/deprecated/performance_test'
|
|
|
|
autoload :Routing, 'action_controller/deprecated'
|
|
|
|
autoload :TestCase, 'action_controller/test_case'
|
2009-12-02 23:01:01 -05:00
|
|
|
|
2009-12-22 18:27:37 -05:00
|
|
|
eager_autoload do
|
|
|
|
autoload :RecordIdentifier
|
|
|
|
autoload :UrlRewriter
|
|
|
|
|
|
|
|
# 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-02 23:01:01 -05:00
|
|
|
end
|
|
|
|
end
|
2008-11-25 11:38:20 -05:00
|
|
|
|
2009-12-02 23:01:01 -05:00
|
|
|
# All of these simply register additional autoloads
|
|
|
|
require 'abstract_controller'
|
2009-08-31 15:49:59 -04:00
|
|
|
require 'action_dispatch'
|
|
|
|
require 'action_view'
|
2009-12-02 23:01:01 -05:00
|
|
|
require 'action_controller/vendor/html-scanner'
|
2009-07-15 17:15:52 -04:00
|
|
|
|
|
|
|
# Common ActiveSupport usage in ActionController
|
|
|
|
require "active_support/concern"
|
|
|
|
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'
|
2009-08-06 17:48:48 -04:00
|
|
|
require 'active_support/inflector'
|