2017-07-24 20:20:53 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-06 16:51:43 +00:00
|
|
|
require "abstract_controller"
|
|
|
|
require "action_dispatch"
|
2017-10-21 13:18:17 +00:00
|
|
|
require "action_controller/metal/strong_parameters"
|
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
|
|
|
|
2015-04-15 18:30:27 +00:00
|
|
|
autoload :API
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :Base
|
|
|
|
autoload :Metal
|
2015-01-18 00:06:10 +00:00
|
|
|
autoload :Renderer
|
2015-04-07 02:20:57 +00:00
|
|
|
autoload :FormBuilder
|
2009-06-15 18:44:45 +00:00
|
|
|
|
2016-02-23 22:55:49 +00:00
|
|
|
eager_autoload do
|
|
|
|
autoload :Caching
|
|
|
|
end
|
|
|
|
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload_under "metal" do
|
2019-09-17 22:38:01 +00:00
|
|
|
eager_autoload do
|
|
|
|
autoload :Live
|
|
|
|
end
|
|
|
|
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :ConditionalGet
|
2017-11-15 21:07:28 +00:00
|
|
|
autoload :ContentSecurityPolicy
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :Cookies
|
2011-04-18 06:17:47 +00:00
|
|
|
autoload :DataStreaming
|
2018-04-06 19:13:28 +00:00
|
|
|
autoload :DefaultHeaders
|
2014-08-16 22:06:20 +00:00
|
|
|
autoload :EtagWithTemplateDigest
|
2016-08-22 20:34:35 +00:00
|
|
|
autoload :EtagWithFlash
|
2020-11-14 12:13:54 +00:00
|
|
|
autoload :PermissionsPolicy
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :Flash
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :Head
|
|
|
|
autoload :Helpers
|
2009-12-31 00:35:50 +00:00
|
|
|
autoload :HttpAuthentication
|
2015-06-02 20:12:50 +00:00
|
|
|
autoload :BasicImplicitRender
|
2010-03-03 08:42:51 +00:00
|
|
|
autoload :ImplicitRender
|
2010-01-12 23:41:04 +00:00
|
|
|
autoload :Instrumentation
|
2019-09-24 17:47:34 +00:00
|
|
|
autoload :Logging
|
2009-12-22 23:27:37 +00:00
|
|
|
autoload :MimeResponds
|
2011-04-28 08:56:11 +00:00
|
|
|
autoload :ParamsWrapper
|
2009-12-22 23:27:37 +00:00
|
|
|
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
|
2011-04-18 06:52:29 +00:00
|
|
|
autoload :Streaming
|
2012-07-12 05:50:42 +00:00
|
|
|
autoload :StrongParameters
|
2016-08-09 17:35:59 +00:00
|
|
|
autoload :ParameterEncoding
|
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
|
|
|
|
2016-01-21 00:16:23 +00:00
|
|
|
autoload_under "api" do
|
|
|
|
autoload :ApiRendering
|
|
|
|
end
|
|
|
|
|
2016-08-06 16:51:43 +00:00
|
|
|
autoload :TestCase, "action_controller/test_case"
|
|
|
|
autoload :TemplateAssertions, "action_controller/test_case"
|
2009-12-03 04:01:01 +00:00
|
|
|
end
|
2008-11-25 16:38:20 +00:00
|
|
|
|
2010-06-14 21:21:53 +00:00
|
|
|
# Common Active Support usage in Action Controller
|
2016-08-06 16:51:43 +00:00
|
|
|
require "active_support/core_ext/module/attribute_accessors"
|
|
|
|
require "active_support/core_ext/load_error"
|
|
|
|
require "active_support/core_ext/module/attr_internal"
|
|
|
|
require "active_support/core_ext/name_error"
|
|
|
|
require "active_support/inflector"
|